new playerState = GetPlayerState(playerid); if (playerState != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, COLOR_RED, "Error: You must be on foot to use this command.");