checkpoint with money
#4

It's probably also worth mentioning that if you don't use IsPlayerInRangeOfPoint (or streamer with checkpoint ids) with your checkpoint co-ords the script wont know which checkpoint you want to give money, so all checkpoints will give cash.

EDIT: eg,
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, RANGE, x , y, z)//swap range for the size of the checkpoint and x, y, z for the coordinates of the checkpoint
    {
        new MoneyT;
        MoneyT = SetTimer("Every1Second",1000,true);
        if(!IsPlayerInAnyVehicle(playerid)) {
        GivePlayerMoney(playerid,GetPlayerMoney(playerid)+ 1);
    }
    return 1;
}
Reply


Messages In This Thread
checkpoint with money - by unforgiving - 12.11.2010, 22:28
Re: checkpoint with money - by iownafiretruck - 13.11.2010, 00:12
Re: checkpoint with money - by Kitten - 13.11.2010, 00:18
Re: checkpoint with money - by iggy1 - 13.11.2010, 00:24

Forum Jump:


Users browsing this thread: 2 Guest(s)