FeVosFeR Posted January 1, 2019 Report Share Posted January 1, 2019 Imi poate da cineva un exemplu cum pot face comanda [/gotohq <ID>]? Quote Link to comment Share on other sites More sharing options...
Kiran Posted January 1, 2019 Report Share Posted January 1, 2019 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; } Quote Ares4 =( Link to comment Share on other sites More sharing options...
Gabriel03 Posted January 6, 2019 Report Share Posted January 6, 2019 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.