19.07.2011, 00:25
pawn Код:
CMD:signcheck(playerid, params[])
{
if(!strlen(params[11]))
{
SendClientMessage(playerid, 0xFF0000AA, "{FFFFFF}Use: /signcheck [checknumber]");
return 1;
}
new number = strval(params[11]);
if(number == CheckNumber[playerid])
{
SendClientMessage(playerid, 0x00FF00AA, "{FFFFFF}You received your money!");
GivePlayerMoney(playerid, -111);
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "{FF3300}Wrong checknumber!");
}
return 1;
}
Use: /signcheck [checknumber]
Instead of the actual thing, any ideas?