13.03.2013, 01:17
PHP код:
CMD:dropcar(playerid, params[])
{
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You are not in a vehicle!");
SetPlayerCheckpoint(playerid, -1697.0311,-92.7514,3.5544, 5.0);
}
if (IsPlayerInCheckpoint(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
GivePlayerMoney(playerid, random(1000) + 657);
SetVehicleToRespawn(playerid);
SendClientMessage(playerid, COLOR_WHITE, "You dopped a car! You must now wait 15 minutes before doing this command again.");
}
return 1;
}
I was suppose to be !IsPlayerInAnyVehicle.

