20.02.2010, 12:05
how to make this command for multiple admin ranks?
if (strcmp("/hq", cmdtext, true, 10) == 0) // Teleports Admins To Admin HQ
{
if(PlayerAdminLevel[playerid] == 1337)
{
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,88.7433);
SetPlayerPos(playerid,2082.8745,1272.4794,10.8203) ;
SetCameraBehindPlayer(playerid);
}
else
SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
return 1;
}
if (strcmp("/hq", cmdtext, true, 10) == 0) // Teleports Admins To Admin HQ
{
if(PlayerAdminLevel[playerid] == 1337)
{
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,88.7433);
SetPlayerPos(playerid,2082.8745,1272.4794,10.8203) ;
SetCameraBehindPlayer(playerid);
}
else
SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
return 1;
}