Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

CMD:gotohq(playerid, params[]) {
    new id;
    if(PlayerInfo[playerid][pAdmin] < 1) return 1;
    if(InGame[playerid] == 1) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece esti in arena! Foloseste comanda /leavearena pentru a iesi.");
    if(sscanf(params, "i", id)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/gotohq <hq id>");
    if(id < 1 || id > 13) return SendClientMessage(playerid, -1, "ID invalid! (1-13)");
    SetPlayerPosEx(playerid, DynamicFactions[id][extX], DynamicFactions[id][extY], DynamicFactions[id][extZ]);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    new string[180];
    format(string, sizeof(string), "AdmCmd: %s s-a teleportat la HQ-ul factiunii %s (%d).", GetName(playerid), FactionName(id), id);
    if(GetPVarInt(playerid, "Cover") == 0) SendAdminMessage(COLOR_LOGS, string, 1);
    return 1;
}

 

Ares4  =(

 

 

Posted

Daca ai factiuni dinamice ( Adica cel mai probabil ) poti sa folosesti sscanf pentru a lua id-ul factiunii dorite si sa ii setezi pozitia,interiorul si virtual world-ul factiunii folosind variabila Factiunilor dinamice.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.