Jump to content
  • 0

Problema Imunitate


w3b

Question

Nick: w3b

Problema: Am improvizat ceva ca un admin 1337 sa aiba un fel de imunitate , sa nu poata alti admini sa foloseasca comenzi pe cnv care are admin 1337 , dar problema este ca la admin 1337 nu mai poti folosi comenzile la care le-am adaugat improvizatia mea .Cum sa fac ca altii sa nu poata folosi comenzi pe admin 1337 dar adminul 1337 sa poata folosi comenzi pe ei.

errori:Nu da erori

Linii script:[pawn]if(strcmp(cmd, "/kick", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

    tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendUsage(playerid,"/kick [playerid/PartOfName] [motivu]");

return 1;

}

giveplayerid = ReturnUser(tmp);

if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1)

{

if(IsPlayerConnected(giveplayerid))

{

    if(giveplayerid != INVALID_PLAYER_ID)

    {

    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

GetPlayerName(playerid, sendername, sizeof(sendername));

    // improvizatia lu` salam :) >    if(PlayerData[giveplayerid][pAdmin] >= 1337) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti da kick Fondatorului.");    << imprivizatia

new length = strlen(cmdtext);

while ((idx < length) && (cmdtext[idx] <= ' '))

{

idx++;

}

new offset = idx;

new result[200];

while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

{

result[idx - offset] = cmdtext[idx];

idx++;

}

result[idx - offset] = EOS;

if(!strlen(result))

{

SendUsage(playerid,"/kick [playerid/PartOfName] [motivul]");

return 1;

}[/pawn]

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Poftim, acum poti da kick si fondatorului doar sa fi fondator.

[pawn]

if( PlayerData[ giveplayerid ][ pAdmin ] >= 1337 && PlayerData[ playerid ][ pAdmin ] != 1337 )

return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti da kick Fondatorului.");[/pawn]

I'm back bitches.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.