[AJUDA] FS Admin
#1

Ola Pessoal Do Forum Samp Vim Pedir uma Ajuda Bem Util, Porque Quando eu Min Dou Admin no Meu Server Dai Quando eu saio e Entro Denovo Eu Nгo Tou mais de ADMIN? Aki ta O Codigo deo /daradmin '-'

PHP код:
    if(strcmp(cmd"/daradmin"true) == || strcmp(cmd"/daradminnivel"true) == 0)
    {
        new 
player[MAX_PLAYER_NAME];
        if(
PlayerInfo[playerid][pAdmin] < 10 && !IsPlayerAdmin(playerid)) return DenyMessage(playerid10);
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp)) return SendClientMessage(playeridCOLOR_WHITE"USAGE: /daradmin ou /daradminnivel [playerid] [AdminLNivel]");
        
giveplayerid ReturnUser(tmp);
        
tmp strtok(cmdtextidx);
        new 
level strval(tmp);
           if(
giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_WHITE"id invalido.");
           
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
        
GetPlayerName(playeridplayersizeof(player));
        
PlayerInfo[giveplayerid][pAdmin] = level;
        
printf("Admin %s made %s a level %d admin."playergiveplayerlevel);
        
format(stringsizeof(string), "Admin \"%s\" te pos como admin nl %d.",playerlevel);
        
SendClientMessage(giveplayeridCOLOR_GREENstring);
        
format(stringsizeof(string), "Vocк deu admin a \"%s\" nivel %d admin."giveplayerPlayerInfo[giveplayerid][pAdmin]);
        
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
           return 
1;
    } 
Reply


Messages In This Thread
[AJUDA] FS Admin - by You_Tube - 10.10.2011, 14:59
Re: [AJUDA] FS Admin - by ViniBorn - 10.10.2011, 15:02
Re: [AJUDA] FS Admin - by You_Tube - 10.10.2011, 15:06
Re: [AJUDA] FS Admin - by Vai_Besta - 10.10.2011, 15:08
Re: [AJUDA] FS Admin - by You_Tube - 10.10.2011, 15:10
Re: [AJUDA] FS Admin - by Case Sensitive - 10.10.2011, 15:20
Re: [AJUDA] FS Admin - by You_Tube - 10.10.2011, 15:21
Re: [AJUDA] FS Admin - by You_Tube - 10.10.2011, 15:35
Re: [AJUDA] FS Admin - by DreeH - 10.10.2011, 15:37
Re: [AJUDA] FS Admin - by Bruno Pereira - 10.10.2011, 16:22

Forum Jump:


Users browsing this thread: 4 Guest(s)