[Question] Random Event
#3

ok well that didnt work for what i was trying to do heres my code
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(CPS_IsPlayerInCheckpoint(playerid, testrob))
    {
    SendClientMessage(playerid, white, "Type: /robstore");
    }
    return 1;
}

stock randomEx(minnum = cellmin, maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/robstore", true)==0)
    {
    if(CPS_IsPlayerInCheckpoint(playerid, testrob))
    GivePlayerMoney(playerid, randomEx(25000, 50000));
    }
    else
    {
    SendClientMessage(playerid,white,"Sorry Your Not In A Store.");
    }
    return 1;
}
Reply


Messages In This Thread
[Question] Random Event - by fsnameless - 04.01.2010, 13:02
Re: [Question] Random Event - by Correlli - 04.01.2010, 13:10
Re: [Question] Random Event - by fsnameless - 05.01.2010, 13:33
Re: [Question] Random Event - by SiJ - 05.01.2010, 13:34
Re: [Question] Random Event - by fsnameless - 05.01.2010, 14:05
Re: [Question] Random Event - by MadeMan - 05.01.2010, 14:22
Re: [Question] Random Event - by fsnameless - 05.01.2010, 14:23
Re: [Question] Random Event - by MadeMan - 05.01.2010, 14:26
Re: [Question] Random Event - by Correlli - 05.01.2010, 14:33
Re: [Question] Random Event - by fsnameless - 06.01.2010, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)