05.06.2014, 11:58
EDIT: do the playerstate part as PrivatioBoni showed
pawn Код:
CMD:mission(playerid,params[])
{
new playerState = GetPlayerState(playerid);
if (playerState != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, COLOR_RED, "Error: You must be on foot to use this command.");
else
{
if(IsPlayerSpawned(playerid))
{
TextDrawShowForPlayer(playerid,mission);
TextDrawShowForPlayer(playerid,mission1);
TextDrawShowForPlayer(playerid,mission2);
}
return 1;
}