- 0
Problema Imunitate
-
Similar Content
-
Problema turf
By Soryn.,
- 3 answers
- 263 views
-
- 1 reply
- 179 views
-
Problema
By ImJustSlim,
- 3 answers
- 286 views
-
- 2 replies
- 158 views
-
- 1 answer
- 312 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
w3b
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