06.09.2015, 21:48
Hi guys I added the Zadmin filterscript to my server and when I tried to use the commands, there were two of them that didn't work. The /acmd1 and the /amcd2 commands. Those commands are supposed to show the admin commands panels but the panels don't show when we type the commands. Here's the script lines for the two commands :
/acdm1
PHP код:
dcmd(acmd1, 9, cmdtext); //this is in the OnPlayerCommandText
dcmd_acmd1(playerid,params[]){
#pragma unused params
if(Account[playerid][pAdminlevel]>=1){
SendClientMessage(playerid, COLOR_ZADMINBLUE, LanguageText[149]);
SendClientMessage(playerid, COLOR_WHITE, "/asay /announce | # [text] (it's private admin chat!) /acmd2 /admincolor /playersrecord /defultsetting");
SendClientMessage(playerid, COLOR_WHITE, "/muted /freezed /jailed /makevip /removevip /savepersonalcar /replacepersonalcar");
SendClientMessage(playerid, COLOR_WHITE, "/veh /fix /fixpv /flip /givecar /heal /jetp /armour /mute /unmute /jail /unjail /disarm /removeweapon /reset /warn");
SendClientMessage(playerid, COLOR_WHITE, "/setweather /settime /carcolor /getip /getvhealth /setvhealth /eject /burn /crash /teleplayer /setname /banwarn");
SendClientMessage(playerid, COLOR_WHITE, "/die /lock /unlock /god /sgod /get /goto /vget /vgoto /setskin /setskintome /setscore /kick /ban /rangeban /freeze");
SendClientMessage(playerid, COLOR_WHITE, "/unfreeze /slap /explode /spec /specoff /givemoney /setplayerinterior /cchat /reports /reportsoff /gmx /lock");
SendClientMessage(playerid, COLOR_WHITE, "/setplayerweather /setplayertime /tempAdmin /makeadmin /playerdata /makeaccount /renameaccount /deleteaccount");
SendClientMessage(playerid, COLOR_YELLOW, LanguageText[150]);
SendClientMessage(playerid, COLOR_LIGHTRED, "***************************************************************************");}
return 1;}
/acmd2
PHP код:
dcmd(acmd2, 9, cmdtext); //this is in the OnPlayerCommandText
dcmd_acmd2(playerid,params[]){
#pragma unused params
if(Account[playerid][pAdminlevel]>=1){
SendClientMessage(playerid, COLOR_ZADMINBLUE, LanguageText[152]);
SendClientMessage(playerid, COLOR_WHITE, "/aheal /aarmour/amute /aunmute /ajail /aunjail /agivemoney /adie /adisarm /areset");
SendClientMessage(playerid, COLOR_WHITE, "/aexplode /akick /aban /afreeze /aunfreeze /aslap /aget /agoto /asetweather /asettime");
SendClientMessage(playerid, COLOR_LIGHTRED, "***************************************************************************");}
return 1;}