COMMAND:kitadm(playerid, params[]) { if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cor_Vermelho, "Vocк Nгo Tem Permiзao Suficiente"); GivePlayerWeapon(playerid,4,99999); GivePlayerWeapon(playerid,16,99999); GivePlayerWeapon(playerid,22,99999); GivePlayerWeapon(playerid,26,99999); GivePlayerWeapon(playerid,32,99999); GivePlayerWeapon(playerid,41,99999); GivePlayerWeapon(playerid,28,99999); return 1; }
COMMAND:kitadm(playerid, params[]) { if(IsPlayerAdmin(playerid)) { GivePlayerWeapon(playerid,4,99999); GivePlayerWeapon(playerid,16,99999); GivePlayerWeapon(playerid,22,99999); GivePlayerWeapon(playerid,26,99999); GivePlayerWeapon(playerid,32,99999); GivePlayerWeapon(playerid,41,99999); GivePlayerWeapon(playerid,28,99999); } if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, Cor_Vermelho, "Vocк Nгo Tem Permiзao Suficiente"); return 1; }
COMMAND:kitadm(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cor_Vermelho, "Vocк Nгo Tem Permiзao Suficiente");
GivePlayerWeapon(playerid,4,99999);
GivePlayerWeapon(playerid,16,99999);
GivePlayerWeapon(playerid,22,99999);
GivePlayerWeapon(playerid,26,99999);
GivePlayerWeapon(playerid,32,99999);
GivePlayerWeapon(playerid,41,99999);
GivePlayerWeapon(playerid,28,99999);
return 1;
}
Oi gente tudo bem ta dando um erro aki tipo esse comando aki funciona certinho mais so os players conseguem usar os adms nao queria faser ao contrario so os adms usar
Код:
COMMAND:kitadm(playerid, params[]) { if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cor_Vermelho, "Vocк Nгo Tem Permiзao Suficiente"); GivePlayerWeapon(playerid,4,99999); GivePlayerWeapon(playerid,16,99999); GivePlayerWeapon(playerid,22,99999); GivePlayerWeapon(playerid,26,99999); GivePlayerWeapon(playerid,32,99999); GivePlayerWeapon(playerid,41,99999); GivePlayerWeapon(playerid,28,99999); return 1; } |
COMMAND:kitadm(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cor_Vermelho, "[ERRO]Vocк nгo tem permissгo para usar o comando!");
GivePlayerWeapon(playerid,4,99999);
GivePlayerWeapon(playerid,16,99999);
GivePlayerWeapon(playerid,22,99999);
GivePlayerWeapon(playerid,26,99999);
GivePlayerWeapon(playerid,32,99999);
GivePlayerWeapon(playerid,41,99999);
GivePlayerWeapon(playerid,28,99999);
return 1;
}
new invalido[128];
format(invalido, sizeof(invalido), "[ERRO]: O Comando '' %s '' esta invalido!",cmdtext);
return SendClientMessage(playerid,0xFFFFFFAA,invalido);
}
|_MeGaTroN_| Adicione isto no ultimo comando: pawn Cуdigo: new invalido[128]; format(invalido, sizeof(invalido), "[ERRO]: O Comando '' %s '' esta invalido!",cmdtext); return SendClientMessage(playerid,0xFFFFFFAA,invalido); } __________________ |
C:\Users\Moises\Desktop\PwHits2014\Serve 0.3c R2\gamemodes\as.pwn(517) : error 017: undefined symbol "cmdtext" C:\Users\Moises\Desktop\PwHits2014\Serve 0.3c R2\gamemodes\as.pwn(694) : warning 203: symbol is never used: "Admin" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
COMMAND:comandos(playerid, params[]) { ShowPlayerDialog(playerid, 8439, DIALOG_STYLE_LIST, "Comandos", "{F60001}/Drift \n{00FF7F}/Corrida\n{00FFFF}/Pmi\n{FFFF00}/Drop\n/Insano\n{FFB90F}/Reparar\n{9B30FF}/Kill\n{D3D3D3}/Creditos\n{FFFFE0}/Afk\n{FFFFFF}/Sairafk\n{8B7D7B}/Animes \n/Dm", "Fechar", ""); }
COMMAND:insano(playerid, params[]) { new string[128], sendername[MAX_PLAYER_NAME]; SetPlayerPos(playerid,-3653.53,381.42,1191.10); SendClientMessage(playerid, Cor_AzEscuro, "=========================================================="); SendClientMessage(playerid, Cor_Vermelho, "Bem Vindo a Insano Da Morte !"); SendClientMessage(playerid, Cor_AzEscuro, "=========================================================="); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "» %s Foi Insano Da Morte ( /insano) !", sendername); SendClientMessageToAll(Cor_Branca, string); }
COMMAND:animes(playerid, params[]) { ShowPlayerDialog(playerid, 45, DIALOG_STYLE_MSGBOX, "Animes", "{F60001}/Rendese {F60001}/Ligar {F60001}/Desligar {F60001}/Bebado {F60001}/Apontar {F60001}/Merda {F60001}/Mascarase {F60001}/Roubar\n{00FF7F}/Cruzarb {00FF7F}/Deitar {00FF7F}/Abaixar {00FF7F}/Vomitar {00FF7F}/Comer {00FF7F}/Rap {00FF7F}/Passarmao {00FF7F}/Cobrar\n{FFB90F}/Overdose {FFB90F}/Fumar {FFB90F}/Fumar2 {FFB90F}/Sentar {FFB90F}/Conversar {FFB90F}/Fodase {FFB90F}/Taichi {FFB90F}/Observar", "Fechar", ""); }
COMMAND:afk(playerid, params[]) { new string [60]; new pname [40]; TogglePlayerControllable(playerid, 0); SendClientMessage(playerid, Cor_Vermelho, "Vocк esta AFK"); format(string, sizeof(string), "O Jogador %s estar AFK", pname); // MENSAGEM A TODOS }
COMMAND:sairafk(playerid, params[]) { new string [70]; new pname [10]; TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, Cor_AzEscuro, "Vocк nгo esta mais AFK"); format(string, sizeof(string), "O Jogador %s voutou a jogar", pname); // MENSAGEM A TODOS }
Код:
COMMAND:comandos(playerid, params[]) { ShowPlayerDialog(playerid, 8439, DIALOG_STYLE_LIST, "Comandos", "{F60001}/Drift \n{00FF7F}/Corrida\n{00FFFF}/Pmi\n{FFFF00}/Drop\n/Insano\n{FFB90F}/Reparar\n{9B30FF}/Kill\n{D3D3D3}/Creditos\n{FFFFE0}/Afk\n{FFFFFF}/Sairafk\n{8B7D7B}/Animes \n/Dm", "Fechar", ""); return 1; } Код:
COMMAND:insano(playerid, params[]) { new string[128], sendername[MAX_PLAYER_NAME]; SetPlayerPos(playerid,-3653.53,381.42,1191.10); SendClientMessage(playerid, Cor_AzEscuro, "=========================================================="); SendClientMessage(playerid, Cor_Vermelho, "Bem Vindo a Insano Da Morte !"); SendClientMessage(playerid, Cor_AzEscuro, "=========================================================="); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "» %s Foi Insano Da Morte ( /insano) !", sendername); SendClientMessageToAll(Cor_Branca, string); return 1; } Код:
COMMAND:animes(playerid, params[]) { ShowPlayerDialog(playerid, 45, DIALOG_STYLE_MSGBOX, "Animes", "{F60001}/Rendese {F60001}/Ligar {F60001}/Desligar {F60001}/Bebado {F60001}/Apontar {F60001}/Merda {F60001}/Mascarase {F60001}/Roubar\n{00FF7F}/Cruzarb {00FF7F}/Deitar {00FF7F}/Abaixar {00FF7F}/Vomitar {00FF7F}/Comer {00FF7F}/Rap {00FF7F}/Passarmao {00FF7F}/Cobrar\n{FFB90F}/Overdose {FFB90F}/Fumar {FFB90F}/Fumar2 {FFB90F}/Sentar {FFB90F}/Conversar {FFB90F}/Fodase {FFB90F}/Taichi {FFB90F}/Observar", "Fechar", ""); return 1; } Код:
COMMAND:afk(playerid, params[]) { new string [60]; new pname [40]; TogglePlayerControllable(playerid, 0); SendClientMessage(playerid, Cor_Vermelho, "Vocк esta AFK"); format(string, sizeof(string), "O Jogador %s estar AFK", pname); // MENSAGEM A TODOS return 1; } Код:
COMMAND:sairafk(playerid, params[]) { new string [70]; new pname [10]; TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, Cor_AzEscuro, "Vocк nгo esta mais AFK"); format(string, sizeof(string), "O Jogador %s voutou a jogar", pname); // MENSAGEM A TODOS return 1; } |