07.01.2015, 18:03
(
Последний раз редактировалось Shaneisace; 10.01.2015 в 20:08.
)
Код:
CMD:removewarning(playerid, params[]) { if(PlayerInfo[playerid][pSilverPoint] < 20) return SendClientMessage(playerid, -1, "You don't have 20 Silver Points to remove the warning."); PlayerInfo[playerid][pSilverPoint] -= 20; // Take 20 points off the player PlayerInfo[playerid][pWarn]--; // Remove 1 warning (Depends on your pinfo data). SendClientMessage(playerid, -1, "You spent 20 silver points and removed a warning!"); return 1; }