CMD:gotocp(playerid, params[]) {
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.");
SetPlayerPosEx(playerid,CheckpointPos[playerid][0], CheckpointPos[playerid][1], CheckpointPos[playerid][2]);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
new string[180];
format(string, sizeof(string), "AdmCmd: %s s-a teleportat la checkpoint.", GetName(playerid));
if(GetPVarInt(playerid, "Cover") == 0) SendAdminMessage(COLOR_LOGS, string, 1);
return 1;
}
Aceasta comanda teleporteaza un admin la un checkpoint dar as dori daca va pricepeti sa-i mai adaugati un SendClientMessage atunci cand nu are niciun checkpoint pe mapa. De exemplu
SendClientMessage(playerid, COLOR_RED, "Nu ai niciun checkpoint pe mapa"
Question
Davidoff7776
Salut! Ma mai puteti ajuta cu o comanda?
Aceasta comanda teleporteaza un admin la un checkpoint dar as dori daca va pricepeti sa-i mai adaugati un SendClientMessage atunci cand nu are niciun checkpoint pe mapa. De exemplu
Multumesc anticipat!
Link to comment
Share on other sites
9 answers to this question
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.