[ajuda]Sistema vip
#5

pawn Код:
if(strcmp(cmd,"/relato",true) ==0 || strcmp(cmd,"/re",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, COLOR_RED, "[Fail] Vocк foi mutado por um admin, nгo pode falar.");
return 1;
}
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, COLOR_GRAD2, "USO: /relato [texto]");
return 1;
}
if(ReduceTime[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк precisa esperar 3 segundos para usar esse comando denovo !");
return 1;
if(PlayerInfo[playerid][pVIP] == 1) //Se nгo for pVIP trocar pela variбvel que define o vip
{
SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio prata enviado para os administradores.");
format(string, sizeof(string), "[Relato] prata %s(%d) relatou: %s", sendername,playerid, (result));
ABroadCast(COLOR_KICKBAN,string,1);
format(string, sizeof(string), "[Relato] prata %s(%d) relatou: %s", sendername,playerid, (result));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
ReduceTime[playerid] = 1;
SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pVIP] == 2) //Se nгo for pVIP trocar pela variбvel que define o vip
{
SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio ouro enviado para os administradores.");
format(string, sizeof(string), "[Relato] ouro %s(%d) relatou: %s", sendername,playerid, (result));
ABroadCast(COLOR_KICKBAN,string,1);
format(string, sizeof(string), "[Relato] ouro %s(%d) relatou: %s", sendername,playerid, (result));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
ReduceTime[playerid] = 1;
SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
format(string, sizeof(string), "[Relato] %s(%d) relatou: %s", sendername,playerid, (result));
ABroadCast(COLOR_KICKBAN,string,1);
format(string, sizeof(string), "[Relato] %s(%d) relatou: %s", sendername,playerid, (result));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
ReduceTime[playerid] = 1;
SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
}
return 1;
}
Reply


Messages In This Thread
[ajuda]Sistema vip - by SERRA93 - 06.05.2011, 03:49
Re: [ajuda]Sistema vip - by diretor7 - 06.05.2011, 04:06
Re: [ajuda]Sistema vip - by SERRA93 - 06.05.2011, 04:34
Re: [ajuda]Sistema vip - by Josma_cmd - 06.05.2011, 04:53
Re: [ajuda]Sistema vip - by diretor7 - 06.05.2011, 05:22
Re: [ajuda]Sistema vip - by Shadoww5 - 06.05.2011, 08:55
Re: [ajuda]Sistema vip - by SERRA93 - 06.05.2011, 18:31
Re: [ajuda]Sistema vip - by SERRA93 - 06.05.2011, 18:40
Re: [ajuda]Sistema vip - by Josma_cmd - 06.05.2011, 19:16
Re: [ajuda]Sistema vip - by Shadoww5 - 06.05.2011, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)