13.06.2013, 16:12
Hi guys,
look i scripted this in my ladmin:
I created this to apply for admin from game, when u haves 30000 score and u typ /applyforadmin its applying for admin and accepting u as lvl 1 admin
But theres a problem When a player types the cmd it sets the level to 1 without having the needed score
Help please, thanks
look i scripted this in my ladmin:
pawn Код:
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");
return 1;
}
But theres a problem When a player types the cmd it sets the level to 1 without having the needed score
Help please, thanks