04.11.2011, 00:25
pawn Код:
C:\Users\Wallace\Desktop\helper.pwn(124) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(124) : error 033: array must be indexed (variable "cmd")
C:\Users\Wallace\Desktop\helper.pwn(133) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(133) : error 033: array must be indexed (variable "tmp")
C:\Users\Wallace\Desktop\helper.pwn(138) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(138) : error 033: array must be indexed (variable "tmp")
C:\Users\Wallace\Desktop\helper.pwn(190) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(190) : error 033: array must be indexed (variable "tmp")
C:\Users\Wallace\Desktop\helper.pwn(215) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(215) : error 033: array must be indexed (variable "tmp")
C:\Users\Wallace\Desktop\helper.pwn(305) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(305) : error 033: array must be indexed (variable "tmp")
C:\Users\Wallace\Desktop\helper.pwn(342) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(342) : error 033: array must be indexed (variable "tmp")
C:\Users\Wallace\Desktop\helper.pwn(380) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(380) : error 033: array must be indexed (variable "tmp")
C:\Users\Wallace\Desktop\helper.pwn(464) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(464) : error 033: array must be indexed (variable "tmp")
C:\Users\Wallace\Desktop\helper.pwn(469) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(469) : error 033: array must be indexed (variable "tmp")
C:\Users\Wallace\Desktop\helper.pwn(493) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(493) : error 033: array must be indexed (variable "tmp")
C:\Users\Wallace\Desktop\helper.pwn(498) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(498) : error 033: array must be indexed (variable "tmp")
C:\Users\Wallace\Desktop\helper.pwn(520) : error 017: undefined symbol "strtok"
C:\Users\Wallace\Desktop\helper.pwn(520) : error 033: array must be indexed (variable "tmp")
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
pawn Код:
//Sistema de helpers e admins || By: 385gtamaster
#include <a_samp>
#include <a_samp>
#include <Dini>
#include <dudb>
#include <utils>
#include <morphinc>
#include <cpstream>
#include <core>
#pragma unused ret_memcpy
//CORES
#define COLOR_HELPER 0x68FFC2AA
#define COLOR_ADMIN 0xF800DFAA
#define COLOR_WHITE 0xFFFFFFAA
//OUTRAS CORES
#define COLOR_BLUE 0x004CFFAA
#define COLOR_DBLUE 0x0800A8AA
#define COLOR_PINK 0xFF48FFAA
#define COLOR_PINK1 0xDF00E0AA
#define COLOR_GREY 0xC190FFAA
#define COLOR_BLACK 0x000000AA
#define COLOR_YELLOW 0xE8D000AA
#define COLOR_YELLOW1 0xD09C00AA
#define COLOR_ORANGE 0xF08400AA
#define COLOR_ORANGE1 0xFF2600AA
#define COLOR_GREEN 0x18F000AA
#define COLOR_GREEN1 0x085800AA
#define COLOR_WARNING 0xFF3620AA
#define COLOR_LIGHTBLUE 0x18F3FFAA
#define COLOR_RED 0xE00000AA
#define COLOR_RED1 0x980000AA
//HELPER
new HelperTrabalhando[MAX_PLAYERS];
//ADMIN
new AdminTrabalhando[MAX_PLAYERS];
//LEVEL
enum lInfo
{
Admin,
Helper,
Avisos,
};
new LevelInfo[MAX_PLAYERS][lInfo];
//OUTROS
new nome[MAX_PLAYER_NAME];
forward SendMessageToAdmins(color,const string[]);
forward SendMessageToHelper(color,const string[]);
public OnFilterScriptInit()
{
print("-------------------------------------------------");
print(" Sistema de helpers carregado || By: 385gtamaster");
print("-------------------------------------------------");
return 1;
}
public OnFilterScriptExit()
{
print("----------------------------------------------------");
print(" Sistema de helpers descarregado || By: 385gtamaster");
print("----------------------------------------------------");
return 1;
}
public OnGameModeInit()
{
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
new string[256];
cmd = strtok (cmdtext, idx);
if(strcmp(cmd, "/darhelper", true) == 0)
{
if(LevelInfo[playerid][Helper] < 5) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Helper ou nгo tem level suficiente!");
if(HelperTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/profhelper)");
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
new tmp[256];
new NomeDado[256];
new NomeDado1[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USE: /darhelper [id] [Nivel]");
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USE: /darhelper [id] [Nivel]");
level = strval(tmp);
GetPlayerName(para1, NomeDado, sizeof(NomeDado));
GetPlayerName(playerid, NomeDado1, sizeof(NomeDado1));
if(para1 == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
format(string, sizeof string, "Vocк deu Helper Nнvel %d para %s", level, NomeDado);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof string, "Vocк ganhou Helper Nнvel %d do admin %s", level, NomeDado1);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
LevelInfo[para1][Helper] = level;
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/helper", true) == 0 || strcmp(cmd, "/h", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Helper] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Helper ou nгo tem level suficiente!");
if(HelperTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
GetPlayerName(playerid, nome, sizeof(nome));
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_WHITE, "USO: /helper [TEXTO]");
return 1;
}
format(string,sizeof(string),"Helper %s: %s", nome, result);
SendMessageToAdmins(COLOR_HELPER,string);
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/irhelp", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Helper] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Helper ou nгo tem level suficiente!");
if(HelperTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/profhelper)");
new tmp[256];
new NomeDestino[256];
new NomeDestinado[256];
new Float:x, Float:y, Float:z;
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /irhelp [playerid]");
if(strval(tmp) == INVALID_PLAYER_ID || !IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
GetPlayerName(strval(tmp), NomeDestino, sizeof(NomeDestino));
GetPlayerName(playerid, NomeDestinado, sizeof(NomeDestinado));
new interior = GetPlayerInterior(strval(tmp));
GetPlayerPos(strval(tmp), x, y, z);
SetPlayerPos(playerid, x+0.5, y, z);
SetPlayerInterior(playerid, interior);
format(string,sizeof(string),"HELPER CMD: O Helper %s se teleportou atй vocк!",NomeDestinado);
SendClientMessage(playerid, COLOR_YELLOW,string);
format(string,sizeof(string),"HELPER CMD: Vocк se teleportou ao player %s",NomeDestino);
SendClientMessage(playerid, COLOR_YELLOW,string);
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/trazerhelp", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Helper] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Helper ou nгo tem level suficiente!");
if(HelperTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/profhelper)");
new tmp[256];
new NomeDestino[256];
new NomeDestinado[256];
new Float:x, Float:y, Float:z;
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /trazerhelp [playerid]");
if(strval(tmp) == INVALID_PLAYER_ID || !IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
GetPlayerName(strval(tmp), NomeDestino, sizeof(NomeDestino));
GetPlayerName(playerid, NomeDestinado, sizeof(NomeDestinado));
new interior = GetPlayerInterior(strval(tmp));
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(strval(tmp), x+0.5, y, z);
SetPlayerInterior(strval(tmp), interior);
format(string,sizeof(string),"HELPER CMD: O Helper %s se trouce vocк atй ele!",NomeDestinado);
SendClientMessage(playerid, COLOR_YELLOW,string);
format(string,sizeof(string),"HELPER CMD: Vocк trouce %s atй vocк",NomeDestino);
SendClientMessage(playerid, COLOR_YELLOW,string);
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/avh", true) == 0 || strcmp(cmd, "/avisohelper", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Helper] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Helper ou nгo tem level suficiente!");
if(HelperTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/profhelper)");
GetPlayerName(playerid, nome, sizeof(nome));
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_WHITE, "USO: /avh [texto]");
return 1;
}
SendClientMessage(playerid, COLOR_WHITE, "|_________Helper Avisa__________|");
format(string,sizeof(string),"Helper %s: %s",nome, (result));
SendClientMessageToAll(COLOR_HELPER,string);
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/ajudahelper", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
if(LevelInfo[playerid][Helper] < 0) return SendClientMessage(playerid, COLOR_WARNING, "Vocк nгo й um Helper!");
if(HelperTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
if(LevelInfo[playerid][Helper] == 1)
{
SendClientMessage(playerid, COLOR_GREEN, "=&=&=&=&=&=&=&=&=&==Ajuda Helper==&=&=&=&=&=&=&=&=&=&=&");
SendClientMessage(playerid, COLOR_BLUE, "[Helper] /irhelp | /trazerhelp | /profhelper | /avh");
SendClientMessage(playerid, COLOR_BLUE, "[Helper] /helper | /darhelper");
SendClientMessage(playerid, COLOR_GREEN, "=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&");
}
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/profhelper", true) == 0)
{
if(LevelInfo[playerid][Helper] < 0) return SendClientMessage(playerid, COLOR_WARNING, "Vocк nгo й um Helper!");
if(HelperTrabalhando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк entrou em modo de jogo e seus comandos administrativos foram-lhe retirados.");
HelperTrabalhando[playerid] = 0;
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
return 1;
}
if(HelperTrabalhando[playerid] == 0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк entrou em modo de admin e seus comandos administrativos foram-lhe devolvidos.");
HelperTrabalhando[playerid] = 1;
SetPlayerHealth(playerid, 9999999);
SetPlayerArmour(playerid, 9999999);
return 1;
}
return 1;
}
//=========================[COMANDOS ADMIN]=====================================
if(strcmp(cmd, "/kick", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Admin] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Admin ou nгo tem level suficiente!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
new tmp[256];
new NomeKickado[256];
new NomeKickador[256];
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /kick [playerid] [motivo]");
if(strval(tmp) == INVALID_PLAYER_ID || !IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
GetPlayerName(strval(tmp), NomeKickado, sizeof(NomeKickado));
GetPlayerName(playerid, NomeKickador, sizeof(NomeKickador));
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_WHITE, "USO: /kick [playerid] [motivo]");
return 1;
}
format(string,sizeof(string),"ADMIN CMD: O player %s fez alguma merda e foi kickado pelo Admin %s. || Motivo: %s.",NomeKickado, NomeKickador, (result));
SendClientMessageToAll(COLOR_WARNING,string);
Kick(strval(tmp));
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/ban", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Admin] < 3) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Admin ou nгo tem level suficiente!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
new tmp[256];
new NomeBanidoIP[256];
new NomeBanidorIP[256];
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /ban [playerid] [motivo]");
if(strval(tmp) == INVALID_PLAYER_ID || !IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
GetPlayerName(strval(tmp), NomeBanidoIP, sizeof(NomeBanidoIP));
GetPlayerName(playerid, NomeBanidorIP, sizeof(NomeBanidorIP));
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_WHITE, "USO: /ban [playerid] [motivo]");
return 1;
}
format(string,sizeof(string),"ADMIN CMD: O player %s fez alguma merda e foi banido pelo Admin %s. || Motivo: %s || Modo: [IP]",NomeBanidoIP, NomeBanidorIP, (result));
SendClientMessageToAll(COLOR_WARNING,string);
GameTextForPlayer(strval(tmp), "~r~BANIDO!", 60000, 6);
Ban(strval(tmp));
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/avisar", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Admin] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Admin ou nгo tem level suficiente!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
new tmp[256];
new NomeAvisado[256];
new NomeAvisador[256];
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /avisar [playerid] [motivo]");
if(strval(tmp) == INVALID_PLAYER_ID || !IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
GetPlayerName(strval(tmp), NomeAvisado, sizeof(NomeAvisado));
GetPlayerName(playerid, NomeAvisador, sizeof(NomeAvisador));
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_WHITE, "USO: /avisar [playerid] [motivo]");
return 1;
}
if(LevelInfo[playerid][Avisos] != 3)
{
format(string,sizeof(string),"ADMIN CMD: O player %s foi avisado pelo Admin %s. || Motivo: %s [Mais 3 й BAN!]",NomeAvisado, NomeAvisador, (result));
SendClientMessageToAll(COLOR_WARNING,string);
LevelInfo[playerid][Avisos]++;
return 1;
}
if(LevelInfo[playerid][Avisos] == 3)
{
format(string,sizeof(string),"ADMIN CMD: O player %s foi avisado 3 vezes pelo Admin %s e foi banido. || Motivo: %s",NomeAvisado, NomeAvisador, (result));
SendClientMessageToAll(COLOR_WARNING,string);
GameTextForPlayer(strval(tmp), "~r~BANIDO!", 60000, 6);
Ban(strval(tmp));
}
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/admin", true) == 0 || strcmp(cmd, "/a", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Admin] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Admin ou nгo tem level suficiente!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
GetPlayerName(playerid, nome, sizeof(nome));
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_WHITE, "USO: /admin [TEXTO]");
return 1;
}
new atext[64];
if(LevelInfo[playerid][Admin] == 1) { atext = "Moderador"; }
else if(LevelInfo[playerid][Admin] == 2) { atext = "Fixo"; }
else if(LevelInfo[playerid][Admin] == 3) { atext = "Master"; }
else if(LevelInfo[playerid][Admin] == 4) { atext = "Scripter/Mapper"; }
else if(LevelInfo[playerid][Admin] == 5) { atext = "Dono"; }
else { atext = ""; }
format(string,sizeof(string),"Admin %s %s: %s",atext, nome, result);
SendMessageToAdmins(COLOR_ADMIN,string);
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/daradmin", true) == 0)
{
if(LevelInfo[playerid][Admin] < 5) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Admin ou nгo tem level suficiente!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
new tmp[256];
new NomeDado[256];
new NomeDado1[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USE: /daradmin [id] [Nivel]");
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USE: /daradmin [id] [Nivel]");
level = strval(tmp);
GetPlayerName(para1, NomeDado, sizeof(NomeDado));
GetPlayerName(playerid, NomeDado1, sizeof(NomeDado1));
if(para1 == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
if(level == 0) return SendClientMessage(playerid, COLOR_WHITE, "Para tirar admin a alguem use: /tiraradmin");
if(level > 5) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo pode dar admin level 5+ a ninguem!");
format(string, sizeof string, "Vocк deu Admin Nнvel %d para %s", level, NomeDado);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof string, "Vocк ganhou Admin Nнvel %d do admin %s", level, NomeDado1);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
LevelInfo[para1][Admin] = level;
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/dargrana", true) == 0)
{
if(LevelInfo[playerid][Admin] < 3) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Admin ou nгo tem level suficiente!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
new tmp[256];
new NomeDado[256];
new NomeDado1[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USE: /dargrana [id] [quantia]");
new para1;
new quantia;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USE: /dargrana [id] [quantia]");
quantia = strval(tmp);
GetPlayerName(para1, NomeDado, sizeof(NomeDado));
GetPlayerName(playerid, NomeDado1, sizeof(NomeDado1));
if(para1 == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
format(string, sizeof string, "Vocк deu %dR$ para %s", quantia, NomeDado);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof string, "Vocк ganhou %dR$ do admin %s", quantia, NomeDado1);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
GivePlayerMoney(para1, quantia);
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/darlevel", true) == 0)
{
if(LevelInfo[playerid][Admin] < 3) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Admin ou nгo tem level suficiente!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
new tmp[256];
new NomeDado[256];
new NomeDado1[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USE: /darlevel [id] [quantia]");
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USE: /darlevel [id] [quantia]");
level = strval(tmp);
GetPlayerName(para1, NomeDado, sizeof(NomeDado));
GetPlayerName(playerid, NomeDado1, sizeof(NomeDado1));
if(para1 == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
format(string, sizeof string, "Vocк deu %d niveis para %s", level, NomeDado);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof string, "Vocк ganhou %d niveis do admin %s", level, NomeDado1);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
SetPlayerScore(para1, level);
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/tiraradmin", true) == 0)
{
if(LevelInfo[playerid][Admin] < 5) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Admin ou nгo tem level suficiente!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
new NomeDado[256];
new tmp[256];
new NomeDado1[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /tiraradmin [playerid]");
if(strval(tmp) == INVALID_PLAYER_ID || !IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
GetPlayerName(strval(tmp), NomeDado, sizeof(NomeDado));
GetPlayerName(playerid, NomeDado1, sizeof(NomeDado1));
LevelInfo[strval(tmp)][Admin] = 0;
format(string, sizeof(string), "Vocк tirou o cargo de admin a %s.", NomeDado);
SendClientMessage(strval(tmp), COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "Vocк foi tirado de admin pelo Admin %s.",NomeDado1);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/gmx", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Admin] < 4) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Admin ou nгo tem level suficiente!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
SendRconCommand("gmx");
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/ir", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Admin] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Admin ou nгo tem level suficiente!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
new tmp[256];
new NomeDestino[256];
new NomeDestinado[256];
new Float:x, Float:y, Float:z;
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /ir [playerid]");
if(strval(tmp) == INVALID_PLAYER_ID || !IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
GetPlayerName(strval(tmp), NomeDestino, sizeof(NomeDestino));
GetPlayerName(playerid, NomeDestinado, sizeof(NomeDestinado));
new interior = GetPlayerInterior(strval(tmp));
GetPlayerPos(strval(tmp), x, y, z);
SetPlayerPos(playerid, x+0.5, y, z);
SetPlayerInterior(playerid, interior);
format(string,sizeof(string),"ADMIN CMD: O Admin %s se teleportou atй vocк!",NomeDestinado);
SendClientMessage(playerid, COLOR_YELLOW,string);
format(string,sizeof(string),"ADMIN CMD: Vocк se teleportou ao player %s",NomeDestino);
SendClientMessage(playerid, COLOR_YELLOW,string);
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/trazer", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Admin] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Admin ou nгo tem level suficiente!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
new tmp[256];
new NomeDestino[256];
new NomeDestinado[256];
new Float:x, Float:y, Float:z;
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /trazer [playerid]");
if(strval(tmp) == INVALID_PLAYER_ID || !IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
GetPlayerName(strval(tmp), NomeDestino, sizeof(NomeDestino));
GetPlayerName(playerid, NomeDestinado, sizeof(NomeDestinado));
new interior = GetPlayerInterior(strval(tmp));
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(strval(tmp), x+0.5, y, z);
SetPlayerInterior(strval(tmp), interior);
format(string,sizeof(string),"ADMIN CMD: O Admin %s se trouce vocк atй ele!",NomeDestinado);
SendClientMessage(playerid, COLOR_YELLOW,string);
format(string,sizeof(string),"ADMIN CMD: Vocк trouce %s atй vocк",NomeDestino);
SendClientMessage(playerid, COLOR_YELLOW,string);
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/av", true) == 0 || strcmp(cmd, "/aviso", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Admin] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й um Admin ou nгo tem level suficiente!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
GetPlayerName(playerid, nome, sizeof(nome));
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_WHITE, "USO: /av [texto]");
return 1;
}
SendClientMessage(playerid, COLOR_WHITE, "|_________Admin Avisa__________|");
format(string,sizeof(string),"Admin %s: %s",nome, (result));
SendClientMessageToAll(COLOR_DBLUE,string);
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/ajudaadmin", true) == 0 || strcmp(cmd, "/aa", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Admin] < 0) return SendClientMessage(playerid, COLOR_WARNING, "Vocк nгo й um Admin!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
if(LevelInfo[playerid][Admin] == 1)
{
SendClientMessage(playerid, COLOR_GREEN, "=&=&=&=&=&=&=&=&=&==Ajuda Admin==&=&=&=&=&=&=&=&=&=&=&");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 1] /kick | /ir | /trazer | /avisar | /a");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 1] /trabalhar | /av");
SendClientMessage(playerid, COLOR_GREEN, "=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&");
}
if(LevelInfo[playerid][Admin] == 2)
{
SendClientMessage(playerid, COLOR_GREEN, "=&=&=&=&=&=&=&=&=&==Ajuda Admin==&=&=&=&=&=&=&=&=&=&=&");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 2] /kick | /ban | /ir | /trazer | /avisar | /a");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 2] /trabahar | /av");
SendClientMessage(playerid, COLOR_GREEN, "=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&");
}
if(LevelInfo[playerid][Admin] == 3)
{
SendClientMessage(playerid, COLOR_GREEN, "=&=&=&=&=&=&=&=&=&==Ajuda Admin==&=&=&=&=&=&=&=&=&=&=&");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 3] /kick | /ban | /banip | /ir | /trazer | /av");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 3] /avisar | /dargold | /darresets | /dargrana");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 3] /darlevel | /darrespeito | /a | /trabalhar");
SendClientMessage(playerid, COLOR_GREEN, "=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&");
}
if(LevelInfo[playerid][Admin] == 4)
{
SendClientMessage(playerid, COLOR_GREEN, "=&=&=&=&=&=&=&=&=&==Ajuda Admin==&=&=&=&=&=&=&=&=&=&=&");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 4] /kick | /ban | /banip | /gmx | /ir | /trazer ");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 4] /ir | /trazer | /avisar | /dargold | /darresets");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 4] /dargrana | /darlevel | /darrespeito | /a");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 4] /trabalhar | /av");
SendClientMessage(playerid, COLOR_GREEN, "=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&");
}
if(LevelInfo[playerid][Admin] == 5)
{
SendClientMessage(playerid, COLOR_GREEN, "=&=&=&=&=&=&=&=&=&==Ajuda Admin==&=&=&=&=&=&=&=&=&=&=&");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 5] /kick | /ban | /banip | /gmx | /ir | /trazer");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 5] /daradmin | /tiraradmin | /darvip | /dargold");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 5] /darresets | /dargrana | /darrespeito | /a");
SendClientMessage(playerid, COLOR_BLUE, "[Admin 5] /darlevel | /trabalhar | /avisar | /av");
SendClientMessage(playerid, COLOR_GREEN, "=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&");
}
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/trabalhar", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Admin] < 0) return SendClientMessage(playerid, COLOR_WARNING, "Vocк nгo й um Admin!");
if(AdminTrabalhando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк entrou em modo de jogo e seus comandos administrativos foram-lhe retirados.");
AdminTrabalhando[playerid] = 0;
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
return 1;
}
if(AdminTrabalhando[playerid] == 0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк entrou em modo de admin e seus comandos administrativos foram-lhe devolvidos.");
AdminTrabalhando[playerid] = 1;
SetPlayerHealth(playerid, 9999999);
SetPlayerArmour(playerid, 9999999);
return 1;
}
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/afk", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
if(LevelInfo[playerid][Admin] < 0) return SendClientMessage(playerid, COLOR_WARNING, "Vocк nгo й um Admin!");
if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб trabalhando (/trabalhar)");
if(AdminTrabalhando[playerid] == 2)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк voltou!");
AdminTrabalhando[playerid] = 1;
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
return 1;
}
if(AdminTrabalhando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк estб AFK!");
AdminTrabalhando[playerid] = 2;
SetPlayerHealth(playerid, 9999999);
SetPlayerArmour(playerid, 9999999);
return 1;
}
return 1;
}
//========================[COMANDOS PLAYER]=====================================
if(strcmp(cmd, "/reportar", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
new tmp[256];
new NomeReportador[256];
new NomeReportado[256];
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /reportar [playerid] [denuncia]");
if(strval(tmp) == INVALID_PLAYER_ID || !IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, COLOR_WHITE, "Player nгo conetado!");
GetPlayerName(strval(tmp), NomeReportado, sizeof(NomeReportado));
GetPlayerName(playerid, NomeReportador, sizeof(NomeReportador));
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_WHITE, "USO: /reportar [playerid] [denuncia]");
return 1;
}
format(string,sizeof(string),"Reportagem de %s: %s || Reportado: %s",NomeReportador, (result), NomeReportado);
SendMessageToAdmins(COLOR_YELLOW,string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Reportagem enviada com sucesso!");
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/duvida", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб conetado!");
GetPlayerName(playerid, nome, sizeof(nome));
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_WHITE, "USO: /duvida [duvida]");
return 1;
}
format(string,sizeof(string),"Duvida de %s: %s",nome, (result));
SendMessageToHelper(COLOR_YELLOW,string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Duvida enviada com sucesso!");
return 1;
}
//-------------------------------------------
if(strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_ADMIN, "Admins Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(AdminTrabalhando[playerid] == 1)
{
if(LevelInfo[i][Admin] == 1)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Moderador] || Modo: [Admin]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(LevelInfo[i][Admin] == 2)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Admin Fixo] || Modo: [Admin]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(LevelInfo[i][Admin] == 3)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Admin Master] || Modo: [Admin]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(LevelInfo[i][Admin] == 4)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Admin Scripter/Mapper] || Modo: [Admin]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(LevelInfo[i][Admin] == 5)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Admin Dono] || Modo: [Admin]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
if(AdminTrabalhando[playerid] == 2)
{
if(LevelInfo[i][Admin] == 1)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Moderador] || Modo: [AFK]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(LevelInfo[i][Admin] == 2)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Admin Fixo] || Modo: [AFK]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(LevelInfo[i][Admin] == 3)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Admin Master] || Modo: [AFK]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(LevelInfo[i][Admin] == 4)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Admin Scripter/Mapper] || Modo: [AFK]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(LevelInfo[i][Admin] == 5)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Admin Dono] || Modo: [AFK]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
if(AdminTrabalhando[playerid] == 0)
{
if(LevelInfo[i][Admin] == 1)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Moderador] || Modo: [Jogo]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(LevelInfo[i][Admin] == 2)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Admin Fixo] || Modo: [Jogo]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(LevelInfo[i][Admin] == 3)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Admin Master] || Modo: [Jogo]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(LevelInfo[i][Admin] == 4)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Admin Scripter/Mapper] || Modo: [Jogo]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(LevelInfo[i][Admin] == 5)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Admin: %s || Nivel: [Admin Dono] || Modo: [Jogo]", nome);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
}
}
return 1;
}
if(strcmp(cmd, "/helpers", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_HELPER, "Helpers Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(HelperTrabalhando[playerid] == 1)
{
if(LevelInfo[i][Helper] == 1)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Helper: %s || Nivel: [%s] || Modo: [Ajuda]", nome, LevelInfo[playerid][Helper]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
if(HelperTrabalhando[playerid] == 0)
{
if(LevelInfo[i][Helper] == 1)
{
GetPlayerName(i, nome, sizeof(nome));
format(string, 256, "Helper: %s || Nivel: [%s] || Modo: [Jogo]", nome, LevelInfo[playerid][Helper]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
}
}
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
public SendMessageToAdmins(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (LevelInfo[i][Admin] >= 1)
{
SendClientMessage(i, color, string);
}
}
return 1;
}
public SendMessageToHelper(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (LevelInfo[i][Helper] >= 1)
{
SendClientMessage(i, color, string);
}
}
return 1;
}