14.06.2009, 22:52
pawn Код:
if (strcmp("/buyc4", cmdtext, true) == 0)
{
if (C4BUY[playerid] == 1) return SendClientMessage(playerid, 0xFF0000AA, "You already have C4");
else
{
SendClientMessage(playerid, 0xFF0000AA, "You have purchased C4");
C4BUY[playerid] = 1;
}
return 1;
}
You should really learn the basics of Pawn...