[Ajuda]Comando /cv -
Biieell - 24.12.2011
Код:
dcmd_cv(playerid, params[])
{
if(Player[playerid][pAdmin] < 1 && Player[playerid][pEnigma] < 1)
return SendClientMessage(playerid, COLOR_RED, "[ERRO] Vocк nгo tem permissгo para usar este comando!");
if(!strlen(params))
return SendClientMessage(playerid, COLOR_GREY, "[USO] /cv <texto>");
if(Player[playerid][pEnigma] > 0)
format(thestring, sizeof(thestring), "[Enigma %d]: %s", Player[playerid][pEnigma], params);
else
{
if (Player[playerid][pAdmin] == 1 )
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Colaborador] %s: %s",Player[playerid][pName],params);
if (Player[playerid][pAdmin] == 2 )
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Moderador] %s: %s",Player[playerid][pName],params);
if (Player[playerid][pAdmin] == 3 )
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Sub Admin] %s: %s",Player[playerid][pName],params);
if (Player[playerid][pAdmin] == 4 )
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Administrador] %s: %s",Player[playerid][pName],params);
if (Player[playerid][pAdmin] == 5 )
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Supervisor] %s: %s",Player[playerid][pName],params);
if (Player[playerid][pAdmin] == 6 )
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Organizador] %s: %s",Player[playerid][pName],params);
if (Player[playerid][pAdmin] == 7 )
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Fundador] %s: %s",Player[playerid][pName],params);
}
SendClientMessageToAll(COLOR_WHITE,thestring);
WriteLog("admins", thestring);
return 1;
}
Ajuda aqi gente , ai ele ta de boa , so que quando entro de adm qualquer lvl aparece :
|______________ Aviso Da Administraзгo ______________|
[Fundador]qualqer coisa.
qualquer lvl de adm que eu pegue aparece que sou Fundador ! Ajudaaa *--*'
Re: [Ajuda]Comando /cv -
Sampizito - 24.12.2011
Ixi, eu conheзo esse gm de ponta a cabeзa *-*
Procure por
stock AccountName(i)
e mande para min oque tб nele
Re: [Ajuda]Comando /cv -
Victor Cesaroni - 24.12.2011
pawn Код:
dcmd_cv(playerid, params[])
{
if(Player[playerid][pAdmin] < 1 && Player[playerid][pEnigma] >= 1)
{
SendClientMessage(playerid, COLOR_RED, "[ERRO] Vocк nгo tem permissгo para usar este comando!");
return 1;
}
if(!strlen(params))
{
SendClientMessage(playerid, COLOR_GREY, "[USO] /cv <texto>");
return 1;
}
if(Player[playerid][pEnigma] > 0)
{
format(thestring, sizeof(thestring), "[Enigma %d]: %s", Player[playerid][pEnigma], params);
}
else
{
if (Player[playerid][pAdmin] == 1 )
{
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Colaborador] %s: %s",Player[playerid][pName],params);
}
else if (Player[playerid][pAdmin] == 2 )
{
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Moderador] %s: %s",Player[playerid][pName],params);
}
else if (Player[playerid][pAdmin] == 3 )
{
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Sub Admin] %s: %s",Player[playerid][pName],params);
}
else if (Player[playerid][pAdmin] == 4 )
{
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Administrador] %s: %s",Player[playerid][pName],params);
}
else if (Player[playerid][pAdmin] == 5 )
{
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Supervisor] %s: %s",Player[playerid][pName],params);
}
else if (Player[playerid][pAdmin] == 6 )
{
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Organizador] %s: %s",Player[playerid][pName],params);
}
else if (Player[playerid][pAdmin] == 7 )
{
SendClientMessageToAll(COLOR_BLUE,"|______________ Aviso Da Administraзгo ______________| ");
format(thestring, sizeof(thestring), "[Fundador] %s: %s",Player[playerid][pName],params);
}
}
SendClientMessageToAll(COLOR_WHITE,thestring);
WriteLog("admins", thestring);
return 1;
}
#Edit: identado