11.07.2010, 12:38
Should fix.
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/buylevel", cmdtext, true, 9) == 0) { if(GetPVarInt(playerid, "p_Respect") >= 10) { SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SendClientMessage(playerid, 0xFFFFFFAA, "SERVER: You have buy 1 level."); } else { return SendClientMessage(playerid, 0xFFFFFFAA, "SERVER: Dont have respects."); } return 1; } return 0; }