24.06.2010, 14:47
Hola compaсeros
tengo un problemilla amm
con este comando
Cuando me registro todo bien cuando me logeo con rcon y pongo nivel ID nivel de admin todo bien 
pongo /admins y salgo en admins bien hasta ahy pero
cuando quiero hacer a otro amigo dice qe no soy nivel suficiente :S
y tengo qe logearme con rcon
para adarle admin por qe sera?

con este comando
pawn Код:
dcmd_Nivel(playerid, params[])
{
new string[128];
new tmp[256] ,idx;
new player[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
new giveplayerid;
if(PlayerInfo[playerid][Nivel] < 5 || IsPlayerAdmin(playerid))
{
tmp = strtok(params, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, Naranja, "[Uso:] /Nivel [id][Nivel]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(params, idx);
new level = strval(tmp);
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, player, sizeof(player));
PlayerInfo[giveplayerid][Nivel] = level;
printf("[Admin] %s a echo a %s Admin Nivel [%d] .", player, giveplayer, level);
format(string, sizeof(string), "[[InfO:]] El Admin %s Te ha Dado Admin Nivel [%d].",player, level);
SendClientMessage(giveplayerid, Aviso, string);
format(string, sizeof(string), "Has dado a %s Admin Nivel [%d].", giveplayer,PlayerInfo[giveplayerid][Nivel]);
SendClientMessage(playerid, Aviso, string);
}
else if(giveplayerid == INVALID_PLAYER_ID)
{
format(string, sizeof(string), "[[InfO:]] Jugador no Conectado");
SendClientMessage(playerid, Rojo, string);
}
}
else
{
SendClientMessage(playerid, Rojo, "[[InfO:]] Lo Sentimos no eres Admin de Nivel suficiente");
}
return 1;
}

pongo /admins y salgo en admins bien hasta ahy pero
cuando quiero hacer a otro amigo dice qe no soy nivel suficiente :S
y tengo qe logearme con rcon
