[AJUDA] Guardiгo
#1

Galera meu servidor tem os guardiхes, mais quando eu coloco /guardioes nгo aparece os guardiхes que sгo guardiхes (Que eu acabei de setar guardiao pra eles) Bom Eu queria que vocкs pedissem algum comando ae pra mim postar ae por enquanto vou postar o /darguardiao e o /guardioes

pawn Код:
if(strcmp(cmd,"/darguardiao", true)==0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file, "aAdmin") == 4 ){
SendClientMessage(playerid, Vermelho, "[INFO] Vocк nao e um admin!");
return 1;
}
if(dini_Int(file, "aAdmin") == 4  || IsPlayerAdmin(playerid)){
new tmp[256];
new plid, skin;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho, "Digite: /darguardiao [id] [35]");
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Digite: /darguardiao [id] [35]");
return 1;
}
skin = strval(tmp);
if(IsPlayerConnected(plid)){
new pname[MAX_PLAYER_NAME];
format(file2, sizeof(file2), PASTA_CONTAS, pname);
dini_IntSet(file2, "Guardiao",1);
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
if(IsPlayerConnected(plid)){
format(string, sizeof(string), "[INFO] O Administrador %s (%d) deu a Vocк Guardiao Para ver os Comandos Use: /cguardiao", aname, playerid, skin);
SendClientMessage(plid, GREEN, string);
format(string, sizeof(string), "[INFO] Vocк deu a %s(ID: %d) Guardiгo! .", pname, plid, skin);
SendClientMessage(playerid, AzuL4, string);
dini_IntSet(file2, "Profissao", skin);
SpawnPlayer(plid);
return 1;
}else{
SendClientMessage(playerid, Vermelho, "[INFO] Jogador nгo conectado.");
return 1;
}
}
}
}

//-------------------------------------------------------------------------------------------------------

if(!strcmp(cmdtext, "/guardioes", true))
{
SendClientMessage(playerid,GREEN, "[»] .:: Guardioes Online ::. [»]");
new count=0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)){
if(dini_Int(file, "Profissao") == Guardiao){
new str[256];
new pname[24];
GetPlayerName(i, pname, 35);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
if(dini_Int(file, "Profissao") == Guardiao){
format(str,sizeof(str),"%s (%d)", pname,i);
}
SendClientMessage(playerid, COLOR_WHITE, str);
count++;
}
}
}
if(count == 0)
{
SendClientMessage(playerid, Vermelho, "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)