[AJUDA] Guardiгo
#4

Testa:

PHP код:
if(strcmp(cmd,"/darguardiao"true)==0)
{
    new 
aname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridanameMAX_PLAYER_NAME);
    
format(filesizeof(file), PASTA_CONTASaname);
    if(
dini_Int(file"aAdmin") == )
        return 
SendClientMessage(playeridVermelho"[INFO] Vocк nao e um admin!");
    if(!(
dini_Int(file"aAdmin") == 4  || IsPlayerAdmin(playerid)))
        return 
1;
    new 
tmp[128], plidskin;
    
tmp strtok(cmdtextidx);
    if(!
strlen(tmp)) 
        return 
SendClientMessage(playeridVermelho"Digite: /darguardiao [id] [35]");
    
plid strval(tmp);
    
tmp strtok(cmdtextidx);
    if(!
strlen(tmp)) 
        return 
SendClientMessage(playeridVermelho"Digite: /darguardiao [id] [35]");
    
skin strval(tmp);
    if(!
IsPlayerConnected(plid))
        return 
SendClientMessage(playeridVermelho"[INFO] Jogador nгo conectado.");
    new 
pname[MAX_PLAYER_NAME];
    
format(file2sizeof(file2), PASTA_CONTASpname);
    
dini_IntSet(file2"Guardiao",1);
    
GetPlayerName(plidpnameMAX_PLAYER_NAME);
    
format(file2sizeof(file2), PASTA_CONTASpname);
    
format(stringsizeof(string), "[INFO] O Administrador %s (%d) deu a Vocк Guardiao Para ver os Comandos Use: /cguardiao"anameplayeridskin);
    
SendClientMessage(plidGREENstring);
    
format(stringsizeof(string), "[INFO] Vocк deu a %s(ID: %d) Guardiгo! ."pnameplidskin);
    
SendClientMessage(playeridAzuL4string);
    
dini_IntSet(file2"Profissao"skin);
    return 
SpawnPlayer(plid);
}
//-------------------------------------------------------------------------------------------------------
if(!strcmp(cmdtext"/guardioes"true))
{
    
SendClientMessage(playerid,GREEN"[»] .:: Guardioes Online ::. [»]");
    new 
count;
    for(new 
iGetMaxPlayers(); pi++)
    {
        if(
IsPlayerConnected(i))
        {    
            new 
str[36];
            
GetPlayerName(istr35);
            
format(file2sizeof(file2), PASTA_CONTASpname);
            if(
dini_Int(file"Profissao") != Guardiao)
                continue;
            
format(str,sizeof(str),"%s (%d)"str,i);
            
SendClientMessage(playeridCOLOR_WHITEstr);
            
count++;
        }
    }
    if(
count == 0)
        return 
SendClientMessage(playeridVermelho"Nгo hб guardiхes online!");
    return 
1;

Reply


Messages In This Thread
[AJUDA] Guardiгo - by guilhermeghc@hotmail.com - 20.01.2012, 05:29
Re: [AJUDA] Guardiгo - by Hardware - 20.01.2012, 15:31
Re: [AJUDA] Guardiгo - by guilhermeghc@hotmail.com - 21.01.2012, 09:53
Re: [AJUDA] Guardiгo - by Shadoww5 - 21.01.2012, 11:22
Re: [AJUDA] Guardiгo - by guilhermeghc@hotmail.com - 21.01.2012, 11:44
Re: [AJUDA] Guardiгo - by Shadoww5 - 21.01.2012, 12:32

Forum Jump:


Users browsing this thread: 1 Guest(s)