Earning money for cars they 'drop'
#2

PHP код:
CMD:dropcar(playeridparams[])
{
    {
    if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridCOLOR_RED"You are not in a vehicle!");
    
SetPlayerCheckpoint(playerid, -1697.0311,-92.7514,3.55445.0);
    }
    
    if (
IsPlayerInCheckpoint(playerid))
    {
    if(
IsPlayerInAnyVehicle(playerid))
    
GivePlayerMoney(playeridrandom(1000) + 657);
    
SetVehicleToRespawn(playerid);
    
SendClientMessage(playeridCOLOR_WHITE"You dopped a car! You must now wait 15 minutes before doing this command again.");
    }
    return 
1;

in the first one it checks that if u r in a car and if u r it will say you are not in a vehicle.
I was suppose to be !IsPlayerInAnyVehicle.
Reply


Messages In This Thread
Earning money for cars they 'drop' - by xXRealLegitXx - 13.03.2013, 01:04
Re: Earning money for cars they 'drop' - by vladi866 - 13.03.2013, 01:17
Re: Earning money for cars they 'drop' - by Mystique - 13.03.2013, 04:42
Re: Earning money for cars they 'drop' - by xXRealLegitXx - 13.03.2013, 19:29
Re: Earning money for cars they 'drop' - by xXRealLegitXx - 13.03.2013, 19:34

Forum Jump:


Users browsing this thread: 1 Guest(s)