Function or Declaration
#6

pawn Код:
CMD:dropcar(playerid)
{
* * if(GetPlayerVehicleID(playerid) != 0)
* * {
* * * * DisablePlayerCheckpoint(playerid);
* * * * SetPlayerCheckpoint(playerid, 2505.8506, -2629.0144, 13.2944, 5);
* * * * SendClientMessage(playerid, COLOR_LIGHTBLUE, "Drop the car at the crane!");
* * * * dropping[playerid] = true;
* * }
* * return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
* * * * if(dropping[playerid] == true)
* * * * {
* * * * * * DisablePlayerCheckpoint(playerid);
* * * * * * new str[128];
* * * * * * new price = randon(1000);
* * * * * * format(str, sizeof(str), "*You've earned {FF6347}$%d{33CCFF} from dropping a car!", price);
* * * * * * SendClientMessage(playerid, COLOR_LIGHTBLUE, str);
* * * * * * GivePlayerMoney(playerid, price);
* * * * * * dropping[playerid] = false;
* * * * * * SetTimerEx("DropTimer", 20000, false, "i", playerid);
* * * * }
* * * * return 1;
}
Reply


Messages In This Thread
Function or Declaration - by weedxd - 17.09.2014, 15:25
Re: Function or Declaration - by Stinged - 17.09.2014, 15:26
Re: Function or Declaration - by weedxd - 17.09.2014, 15:28
Re: Function or Declaration - by biker122 - 17.09.2014, 15:33
Re: Function or Declaration - by weedxd - 17.09.2014, 15:37
Re: Function or Declaration - by biker122 - 17.09.2014, 16:04
Re: Function or Declaration - by weedxd - 17.09.2014, 16:07
Re: Function or Declaration - by biker122 - 17.09.2014, 18:17
Re: Function or Declaration - by weedxd - 17.09.2014, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)