[Ajuda] Ajuda para criar /relatorio
#8

pawn Код:
forward Relatorio(COLOR,const string[],level);
pawn Код:
if(strcmp(cmd, "/relatorio", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, Vermelho, "USE /relatorio [nick] [motivo]");
return 1;
}
if(vip[playerid] < 1)
{
format(string, sizeof(string), "(INFO) Relatorio de %s (%d): %s <<<<< AJUDE ELE By:Sub >>>>>", sendername, playerid, (result));
Relatorio(0xFF8000AA,string,1);
SendClientMessage(playerid, Aviso, "(INFO) Seu relatorio foi enviado a Administraзгo com sucesso, aguarde uma resposta!");
}
else if(vip[playerid] >= 1)
{
format(string, sizeof(string), "(INFO) Relatorio VIP de %s(ID: %d): %s ", sendername, playerid, (result));
ABroadCast(Violeta,string,1);
SendClientMessage(playerid, Aviso, "(INFO) Seu relatorio 'VIP' foi enviado a Administraзгo com sucesso, aguarde uma resposta!");
}
}
return 1;
}
ta ai amigao dai й so vc mudar a cor do relatorio vip e do player normal
Reply


Messages In This Thread
Ajuda para criar /relatorio - by Hugo_Matos - 17.05.2013, 02:46
Re: Ajuda para criar /relatorio - by tonisantolia - 17.05.2013, 03:06
Re: Ajuda para criar /relatorio - by GTO.DoDo - 17.05.2013, 03:17
Re: Ajuda para criar /relatorio - by Hugo_Matos - 17.05.2013, 03:22
Re: Ajuda para criar /relatorio - by GTO.DoDo - 17.05.2013, 03:27
Re: Ajuda para criar /relatorio - by Hugo_Matos - 17.05.2013, 03:28
Re: Ajuda para criar /relatorio - by GTO.DoDo - 17.05.2013, 03:32
Re: Ajuda para criar /relatorio - by Cromado - 17.05.2013, 13:23
Re: Ajuda para criar /relatorio - by Lуs - 17.05.2013, 15:05
Re: Ajuda para criar /relatorio - by Hugo_Matos - 17.05.2013, 16:46

Forum Jump:


Users browsing this thread: 1 Guest(s)