12.10.2011, 00:31
pawn Код:
CMD:daradmin(playerid,params[])
{
new PlayerB,LVL; // defines de PlayerB, e LVL
if(PlayerInfo[playerid][pAdmin] >= 1)//Variavel de admin)
{
if(sscanf(params,"ui",PlayerB,LVL)) // Aqui ele transforma LVL em intiger, PlayerB, em user..
{
SendClientMessage(playerid,-1,"USE: /daradmin [id][lvl]");
return 1;
}
PlayerInfo[PlayerB][pAdmin] = LVL; // aqui й o resto do CMD
return 1;
}
return 1;
}