11.06.2012, 12:31
Try this;
pawn Код:
CMD:sup(playerid, params[])
{
if(GetPlayerState(playerid) == 1)
{
if(PlayerToPoint(5.0,playerid,242.7591,66.4315,1003.6406))
{
SetPlayerPos(playerid, 619.0756,-566.6477,26.1432);
GameTextForPlayer(playerid, "~b~Sheriff Roof",5000,1);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "WARNING: You do not have access to this command.");
return 1;
}
}