[Pedido] Sistema de Sуcio
#1

Galera Alguem tem um sistema de socio que vence sozinho,
tipo
eu uso o comando /darsocio [ID] [level] [meses]

Comando do Meu /darsocio

PHP код:
if (strcmp(cmd"/darsocio"true) == 0) {
    if (
IsPlayerConnected(playerid)) {
        
GetPlayerName(playeridsendername256);
        if (
PlayerInfo[playerid][pAdmin] >= 1341) {
            
SocioVaga();
            
tmp strtok(cmdtextidx);
            if (!
strlen(tmp)) {
                
SendClientMessage(playeridCOLOR_GRAD2"USE: /darsocio [id] [Nivel]");
                return 
true;
            }
            new 
para1;
            new 
level;
            
para1 ReturnUser(tmp);
            
tmp strtok(cmdtextidx);
            if (!
strlen(tmp)) {
                
SendClientMessage(playeridCOLOR_GRAD2"USE: /darsocio [id] [Nivel]");
                return 
true;
            }
            
level strval(tmp);
            
GetPlayerName(para1giveplayersizeof(giveplayer));
            
GetPlayerName(playeridsendernamesizeof(sendername));
            if (
IsPlayerConnected(para1)) {
                if (
para1 != INVALID_PLAYER_ID) {
                    
format(stringsizeof string"Vocк Deu Sуcio Level %d Para o Jogador %s"levelgiveplayer);
                    
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                    
format(stringsizeof string"Vocк Ganhou Sуcio Level %d Do Administrador %s"levelsendername);
                    
SendClientMessage(para1COLOR_LIGHTBLUEstring);
                    
PlayerInfo[para1][pSocio] = level;
                    new 
var03 0;
                    for (new 
0sizeof(SocioInfo); i++) {
                        if (
strcmp(giveplayerSocioInfo[i][sNick], true) == 0) {
                            
SocioInfo[i][sTipo] = level;
                            
SaveSocio();
                            
var03 1;
                            break;
                        }
                    }
                    if (
var03 == 0) {
                        for (new 
0sizeof(SocioInfo); i++) {
                            if (
strcmp("Ninguem"SocioInfo[i][sNick], true) == 0) {
                                
strmid(SocioInfo[i][sNick], giveplayer0strlen(giveplayer), 255);
                                
SocioInfo[i][sTipo] = level;
                                
SaveSocio();
                                break;
                            }
                        }
                    }
                }
            }
        } else {
            
SendClientMessage(playeridCOLOR_GRAD1"   Vocк nгo esta autorizado a usar este comando!");
        }
    }
    return 
true;

Reply


Messages In This Thread
Sistema de Sуcio - by Humildade - 01.01.2013, 16:43
Re: Sistema de Sуcio - by Humildade - 01.01.2013, 17:02
Re: Sistema de Sуcio - by Humildade - 01.01.2013, 17:42
Re: Sistema de Sуcio - by Humildade - 01.01.2013, 19:08
Re: Sistema de Sуcio - by lucasbjs0 - 01.01.2013, 19:12
Re: Sistema de Sуcio - by Humildade - 01.01.2013, 22:56
Re: Sistema de Sуcio - by DiReCt hIt - 01.01.2013, 23:25
Re: Sistema de Sуcio - by Humildade - 01.01.2013, 23:26
Re: Sistema de Sуcio - by curllen - 01.01.2013, 23:55

Forum Jump:


Users browsing this thread: 1 Guest(s)