13.03.2013, 01:04
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:
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.
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;
}


