10.07.2013, 22:14
Quote:
if(strcmp("/money", cmdtext, true, 10) == 0)
{ SendClientMessageEx(playerid, COLOR_RED, "You will receive your money in five minutes."); SetTimerEx("giveplayermoney", 30000, false, "d", playerid); } forward giveplayermoney(playerid); public giveplayermoney(playerid) { GivePlayerMoney(playerid, MONEY HERE); SendClientMessage(playerid, COLOR_RED, "You have received your money!"); return 1; } |
Here is the bit of code.
pawn Код:
// ==== Above in script ==== //
forward giveplayermoney(playerid);
public giveplayermoney(playerid);
// ==== Above in script ==== //
if (IsPlayerInRangeOfPoint(playerid, 7.0,CheckpointMainEnd))
{
SendClientMessage(playerid, COLOR_GREEN,"Calvin Miller says: 'Thanks mate, I will deposit the money to your bank soon!'");
DisablePlayerCheckpoint(playerid);
deliveryjobrunning = 0;
SetTimerEx("giveplayermoney", 300000, false, "d", playerid);
GivePlayerMoney(playerid, random(200) + 300); // CHANGE TO BANK
SendClientMessage(playerid, COLOR_RED,"You just received a payment from 'Calvin Miller' on your bank.");
}
Ignore the "//CHANGE TO BANK" that is for my scripter.