18.07.2011, 20:19
pawn Код:
if(strcmp(cmdtext, "/signcheck", 10)==0)
{
if(!strlen(cmdtext[11]))
{
SendClientMessage(playerid, 0xFF0000AA, "Use: /signcheck [checknumber]");
return 1;
}
new number = strval(cmdtext[11]);
if(number == CheckNumber[playerid])
{
SendClientMessage(playerid, 0x00FF00AA, "You received your money!");
GivePlayerMoney(playerid, ENTER_HERE_THE_AMOUNT!!);
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Wrong checknumber!");
}
return 1;
}