05.01.2010, 13:33
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;
}