Earning money for cars they 'drop'
#1

So, I made a command that makes a checkpoint, if you are in a vehicle, and when you go into the checkpoint, again with a car, you will earn a random amount of money.

This is the command:

Код:
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;
}
If someone could fix this command for me, and give me an example on how to have different random ammounts of money for a different car.
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)