18.07.2016, 10:21
Jб tenho zcmd no topo, botei o codigo que o lek falou e deu o mesmo error
codigo:
Script de cima:
codigo:
PHP код:
CMD:comandosadmin(playerid, params[])
{
if(pAdmin[playerid][Level] < 1) return SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo tem permissгo para esse comando");
new dialogrande[1024];
dialogrande[0] = EOS;
strcat(dialogrande,"[LEVEL 1]: /asay, /jetpack, /tr, /ir, /vidat, /coletet, /dararma, /kick, /cnn, /pinfo, /a [chat admin]\n");
strcat(dialogrande, "[CONT.LVL 1]: /congelar, /descongelar, /tapa, /setskin, /trtodos\n");
strcat(dialogrande, "[LEVEL 3]: /ban, /supertapa, /cityadmin, /saircity\n");
strcat(dialogrande, "[LEVEL 4]: /setpm /settraf /setorg /setpux\n");
strcat(dialogrande, "[LEVEL 5]: /rtc, /bkick, /climas, /clima, /lerpms\n");
ShowPlayerDialog(playerid,666, DIALOG_STYLE_MSGBOX, "COMANDOS ADMIN", dialogrande, "OK", "");
return 1;
}
PHP код:
public OnPlayerText(playerid, text[])
{
new String[180];
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid,Nome,sizeof(Nome));
if(text[0] == '!')
{
for(new i=0; i < MAX_PLAYERS; i++)
{
format(String,sizeof(String),"[Chat Ira Jovem Da Gama] %s (%d): {FFFFFF}%s", Nome,playerid, text[1]);
SendClientMessage(i,COR_VERDE,String);
}
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new idx;
new cmd[256];
cmd = strtok(cmdtext, idx);

