13.06.2013, 16:13
Код:
CMD:applyforadmin(playerid,params[]) { new NeededScoreAdmin; new CheckPlayerLevel; new AcceptPlayerForAdmin; AcceptPlayerForAdmin = playerid; NeededScoreAdmin = 30000; CheckPlayerLevel = playerid; if(GetPlayerScore(playerid) >= NeededScoreAdmin) { SetPlayerScore(CheckPlayerLevel, -10); dUserSetINT(PlayerName2(playerid)).("level",(1)); SendClientMessage(AcceptPlayerForAdmin,red,"Accepted As Tester (Level 1), Congratz %s"); } else { SendClientMessage(playerid, -1, "you dont have points"); } return 1; }