09.12.2012, 11:03
Help, I make command on my server, when outside the vehicle its work but inside vehicle its say Unknown Command.
The Command:
The Command:
pawn Код:
CMD:neon(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vehid = GetPlayerVehicleID(playerid);
{
NeonOnOff(playerid, vehid);
}
}
else return SendClientMessageEx(playerid, COLOR_GREY, "You are not the driver!");
}
else return SendClientMessageEx(playerid, COLOR_GREY, "You are not inside the vehicle!");
return 1;
}