Quote:
Originally Posted by Jhero
Try this;
pawn Код:
CMD:sup(playerid, params[]) { // 1 if(GetPlayerState(playerid) == 1) { // 2 if(PlayerToPoint(5.0,playerid,242.7591,66.4315,1003.6406)) { // 3 SetPlayerPos(playerid, 619.0756,-566.6477,26.1432); GameTextForPlayer(playerid, "~b~Sheriff Roof",5000,1); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } // 1 } // 2 } // 3 else { // 4 - this is outside of the actual command SendClientMessage(playerid, COLOR_LIGHTRED, "WARNING: You do not have access to this command."); return 1; } // 4 - this is outside of the actual command }
|
As you can see above that doesn't seem to even work at all just by the looks of it.