27.03.2010, 11:39
I have this code
But it doesnt work! I mean if im not admin i can teleport!
Wat is wrong?
pawn Код:
if(strcmp(cmdtext,"/ahq",true)==0)
{
if(!IsPlayerAdmin(playerid))
{
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,0);
SetPlayerPos(playerid,1172.9707,-2036.2747,69.1413);
SetPlayerFacingAngle(playerid,87.6667);
SendClientMessage(playerid,COLOR_YELLOW,"..::Admin HQ::..");
SendClientMessage(playerid,COLOR_AWES,"Welcome to the Admins HQ");
SendClientMessage(playerid,COLOR_YELLOW,"..::Admin HQ::..");
}
else SendClientMessage(playerid,COLOR_RED,"Unknown Command!Type /cmds for commands list!");
{
}
}
return 1;
}
Wat is wrong?