26.09.2011, 19:32
Hey, erm... this code doesn't work properly
pawn Код:
CMD:football(playerid, params[])
{
new rand = random(3);
if( rand == 1)
{
SCM(playerid, -1, "You got beat 1-0");
GivePlayerMoney(playerid, 50000);
}
if( rand == 2)
{
SCM(playerid, -1, "You won 3-2");
GivePlayerMoney(playerid, 50000);
}
if( rand == 3)
{
SCM(playerid, -1, "You drew 3-3");
GivePlayerMoney(playerid, 1000);
}
return 1;
}