if(strcmp(cmd, "/Casacmds", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____________________Comandos da Casa____________________|"); SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair - /Comprarhouse - /sellhouse - /openhouse"); SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting - /rentfee - /Alugarquarto - /housewithdraw - /housedeposit"); SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput - /housematstake - /housedrugsput - /housedrugstake"); SendClientMessage(playerid,COLOR_LIGHTGREEN,"______________________________________________________________________________________"); } return 1; }
if(strcmp(cmd, "/Casacmds", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____________________Comandos da Casa____________________|");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair - /Comprarhouse - /sellhouse - /openhouse");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting - /rentfee - /Alugarquarto - /housewithdraw - /housedeposit");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput - /housematstake - /housedrugsput - /housedrugstake"); SendClientMessage(playerid,COLOR_LIGHTGREEN,"______________________________________________________________________________________");
return 1;
}
return 1;
}
tem certeza qe estб digitando certo? digite outro comando, vai ver bugou.
|
new string[256]; new cmd[256]; new tmp[256];
if(strcmp(cmd, "/Casacmds", true) == 0)
{ SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____ ________________Comandos da Casa____________________|"); SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair - /Comprarhouse - /sellhouse - /openhouse"); SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting - /rentfee - /Alugarquarto - /housewithdraw - /housedeposit"); SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput - /housematstake - /housedrugsput - /housedrugstake"); SendClientMessage(playerid,COLOR_LIGHTGREEN,"_____ __________________________________________________ _______________________________"); return 1; } tenta... |
tenta:
pawn Код:
|
if(!strcmp(cmd, "/Casacmds", true))
{
if(!IsPlayerConnected(playerid))
return 1;
SendClientMessage (playerid,COLOR_LIGHTGREEN,"|____________________Comandos da Casa____________________|");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair - /Comprarhouse - /sellhouse - /openhouse");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting - /rentfee - /Alugarquarto - /housewithdraw - /housedeposit");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput - /housematstake - /housedrugsput - /housedrugstake");
SendClientMessage playerid,COLOR_LIGHTGREEN,"______________________________________________________________________________________");
return 1;
}
pawn Код:
|
if(strcmp(cmd, "/comandos", true) == 0 || strcmp(cmd, "/cmds", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____________________Comandos____________________|"); SendClientMessage(playerid, COLOR_WHITE, "[General:] /Estatisticas - /Horas - /Admins - /MudarPassword - /MudarSpawn - /Doar - /Ajuda - /Reportar"); SendClientMessage(playerid, COLOR_WHITE, "[General:] /MostrarLicenзas - /MostrarBI - /Pagar - /toggle - /advertise"); SendClientMessage(playerid, COLOR_WHITE, "[General:] /Vendar - /Desvendar - /callcar - /sellcar - /Chamar - /ListaAnim - /ProcurarCarteira"); SendClientMessage(playerid, COLOR_WHITE, "[General:] /Amarrar - /lotto - /Dar - /PousarArma - /JuntarArma - /AceitarEmprego - /DeixarEmprego - /UsarDrogas - /Revistar"); SendClientMessage(playerid, COLOR_WHITE, "[General:] /Comprar - /ComprarArma - /ComprarBebida - /ComprarTabaco - /ComprarRoupa - /eat - /PorMascara - /TirarMascara"); SendClientMessage(playerid, COLOR_WHITE, "[General:] /Veiculocmds - /Casacmds - /businesscmds - /AjudaEmprego - /chatcmds - /notecmds - /phonecmds - /BancoCmds - /fishcmds"); SendClientMessage(playerid, COLOR_WHITE, "[Other:] /Bug - /Sugestгo"); if (PlayerInfo[playerid][pFaction] != 255) { if(PlayerInfo[playerid][pFaction] == 0) { SendClientMessage(playerid, COLOR_WHITE, "[Policia:] /Policiacmds"); } if(PlayerInfo[playerid][pFaction] == 1) { SendClientMessage(playerid, COLOR_WHITE, "[Groove:] /Groovecmds"); } if(PlayerInfo[playerid][pFaction] == 2) { SendClientMessage(playerid, COLOR_WHITE, "[Mafia:] /Mafiacmds"); } if(PlayerInfo[playerid][pFaction] == 3) { SendClientMessage(playerid, COLOR_WHITE, "[RC-News/Events:] /Newscmds"); } if(PlayerInfo[playerid][pFaction] == 4) { SendClientMessage(playerid, COLOR_WHITE, "[Taxis:] /Taxicmds"); } if(PlayerInfo[playerid][pFaction] == 5) { SendClientMessage(playerid, COLOR_WHITE, "[Hospital:] /Curar - /®adio"); } if(PlayerInfo[playerid][pFaction] == 6) { SendClientMessage(playerid, COLOR_WHITE, "[Governo:] /GovDuty"); } if(PlayerInfo[playerid][pFaction] == 7) { SendClientMessage(playerid, COLOR_WHITE, "[Mecвnicos] /duty - /repair - /refill - /tow"); } if(PlayerInfo[playerid][pRank] == 1) { SendClientMessage(playerid, COLOR_WHITE, "[Lнder:] /Leadercmds"); } if(PlayerInfo[playerid][pAdmin] >= 1) { SendClientMessage(playerid, COLOR_WHITE, "[Admin:] /acmds"); } SendClientMessage(playerid,COLOR_LIGHTGREEN,"______________________________________________________________________________________"); } return 1; }
if(strcmp(cmd, "/Casacmds", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____________________Comandos da Casa____________________|"); SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair - /Comprarhouse - /sellhouse - /openhouse"); SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting - /rentfee - /Alugarquarto - /housewithdraw - /housedeposit"); SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput - /housematstake - /housedrugsput - /housedrugstake"); SendClientMessage(playerid,COLOR_LIGHTGREEN,"______________________________________________________________________________________"); } return 1; }