30.12.2009, 19:12
i want do a command which a player can use it only if he is on foot
how can i do that? help me
how can i do that? help me
if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
if (strcmp(cmdtext, "/command") == 0){
if(IsPlayerInAnyVehicle(playerid)){
SendClientMessage(playerid,0x00FF00AA,"You cannot use this command as you're in a vehicle."):
}else{
// Do whatever the command should do
return 1;
}}