/commands doesnt shows any response! please see
#1

hello, i have a problem in my gamemode, when i try to use the cmd /commands in game it doesnt show any dialogs nor response like "error" or something but it just like u enter it and nothing happens.. im srry i dont know what that error called so.. here my cmd of commands.. hope someone will fix it :/

Код:
dcmd_commands(playerid,params[])
{
	#pragma unused params
	new string[128];
	if(IsSpawned[playerid] != 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command.");
        return 1;
	}
	if(IsKidnapped[playerid] == 1)
	{
	    SendClientMessage(playerid,COLOR_ERROR,"You are kidnapped. You cannot use this command.");
	    return 1;
	}
	if(IsFrozen[playerid] == 1)
	{
	    SendClientMessage(playerid,COLOR_ERROR,"You have been frozen by a Server Administrator. You cannot use this command.");
	    return 1;
	}
    if(gTeam[playerid] == TEAM_COP && GetPlayerSkin(playerid) != 286)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}POLICE COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_ARMY)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}ARMY COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_CIA)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}CIA COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n/tackle\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_COP && GetPlayerSkin(playerid) == 286)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}FBI COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_CARFIX)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}MECHANIC COMMANDS","{FFFFFF}/repair - Repairs someone elses vehicle.\n/repairme - Repairs your own vehicle.\n/setprice - Sets your price.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_MEDIC)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}MEDIC COMMANDS","{FFFFFF}/heal - Heals a player.\n/healme - Heals yourself.\n/cure - Cures a player.\n/cureme - Cures yourself.\n/setprice - Sets your price.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_RAPIST)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}RAPIST COMMANDS","{FFFFFF}/rape - Rapes a player and infects them.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_DRGDEL)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}DRUG DEALER COMMANDS","{FFFFFF}/giveweed - Gives a player weed.\n/giveheroin - Gives a player heroin.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_GUNDEL)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}WEAPON DEALER COMMANDS","{FFFFFF}/showweapons - Shows a player your weapon list.\n/sellweapon - Sells a player a weapon.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_HITMAN)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}HITMAN COMMANDS","{FFFFFF}/hitlist - Shows the list of hits.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_KIDNAP)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}KIDNAPPER COMMANDS","{FFFFFF}/kidnap - Kidnaps a player.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_THIEF)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}THIEF COMMANDS","{FFFFFF}/rob - Robs a player.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_CARJACK)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}CAR JACKER COMMANDS","{FFFFFF}/sellcar - Sells a stolen car to the Shipyard.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_TERRO)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}TERRORIST COMMANDS","{FFFFFF}/blowcar - Blows up your car.\n/blowup - Blows up a building.\n/tlevel - Shows your Terrorism Level.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	if(gTeam[playerid] == TEAM_DRIVER)
    {
		ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}DRIVER COMMANDS","{FFFFFF}/setprice - Set the price of your services.\nYou have no other specific commands. Get in a taxi vehicle to go on duty.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
		format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
		format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
		SendClientMessageToAllAdmins(string);
	}
	return 1;
}
Reply
#2

IIRC, add:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd("/commands", 9, cmdtext);
    return 1;
}
It's best that you switch command processors though. Both processors below work great and are easy to use.
Just pick whichever one you prefer:

zcmd
y_commands
Reply
#3

where i will put that?
Reply
#4

Anywhere in the script. If you already have an OnPlayerCommandText callback, then just add

pawn Код:
dcmd("/commands", 9, cmdtext);
inside of it.
Reply
#5

try using ZCMD
like this :
pawn Код:
#include <zcmd>  /*ON TOP OF SCRIPT*/
//=============================
//----------------------------------------------
//rest of command
CMD:commands(playerid,params[])
{
    #pragma unused params
    new string[128];
    if(IsSpawned[playerid] != 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command.");
        return 1;
    }
    if(IsKidnapped[playerid] == 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You are kidnapped. You cannot use this command.");
        return 1;
    }
    if(IsFrozen[playerid] == 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You have been frozen by a Server Administrator. You cannot use this command.");
        return 1;
    }
    if(gTeam[playerid] == TEAM_COP && GetPlayerSkin(playerid) != 286)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}POLICE COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_ARMY)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}ARMY COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_CIA)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}CIA COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n/tackle\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_COP && GetPlayerSkin(playerid) == 286)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}FBI COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_CARFIX)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}MECHANIC COMMANDS","{FFFFFF}/repair - Repairs someone elses vehicle.\n/repairme - Repairs your own vehicle.\n/setprice - Sets your price.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_MEDIC)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}MEDIC COMMANDS","{FFFFFF}/heal - Heals a player.\n/healme - Heals yourself.\n/cure - Cures a player.\n/cureme - Cures yourself.\n/setprice - Sets your price.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_RAPIST)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}RAPIST COMMANDS","{FFFFFF}/rape - Rapes a player and infects them.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_DRGDEL)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}DRUG DEALER COMMANDS","{FFFFFF}/giveweed - Gives a player weed.\n/giveheroin - Gives a player heroin.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_GUNDEL)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}WEAPON DEALER COMMANDS","{FFFFFF}/showweapons - Shows a player your weapon list.\n/sellweapon - Sells a player a weapon.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_HITMAN)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}HITMAN COMMANDS","{FFFFFF}/hitlist - Shows the list of hits.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_KIDNAP)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}KIDNAPPER COMMANDS","{FFFFFF}/kidnap - Kidnaps a player.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_THIEF)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}THIEF COMMANDS","{FFFFFF}/rob - Robs a player.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_CARJACK)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}CAR JACKER COMMANDS","{FFFFFF}/sellcar - Sells a stolen car to the Shipyard.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_TERRO)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}TERRORIST COMMANDS","{FFFFFF}/blowcar - Blows up your car.\n/blowup - Blows up a building.\n/tlevel - Shows your Terrorism Level.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    if(gTeam[playerid] == TEAM_DRIVER)
    {
        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"{0000FF}DRIVER COMMANDS","{FFFFFF}/setprice - Set the price of your services.\nYou have no other specific commands. Get in a taxi vehicle to go on duty.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
        SendClientMessageToAllAdmins(string);
    }
    return 1;
}
Reply
#6

i already have it, this is it right

Код:
dcmd(commands,8,cmdtext);
that is inside of my gamemode
Reply
#7

Ah, That's Stevo127's Game-Mode. It's because you haven't selected a skill. It's not a script error or something.
Reply
#8

yes, its sfcnrrpg by stevo.. i already selected a skill/skin and spawned! but still dont show /commands
Reply
#9

Cleanboy, I used to have that problem too, but it happened few times when on some skills. Try out another skill and type /commands for example spawn as Police Officer or Select Kidnapper while civillian, then type /commands.
Reply
#10

Yes, on others like taxi driver, police, army, cia and etc works! but only on those civilian team's doesnt work like terrorist, drug dealer etc.. /commands don't work on them
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)