23.01.2011, 01:54
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/test", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFF0000FF, "You're lucky.)
GivePlayerMoney(playerid, 10000);
return 1;
}
}
When he type "/test" the he get "Lucky" or "Unlucky"
like an random thingy...
i mean like an rob bank command =/
/robbank = You robbed $999999 from the bank, Enjoy!!!
or if unlucky
/robbank = You failed to rob the bank, please try again later