OnPlayerCommandText problem
#9

Quote:
Originally Posted by DemME
Посмотреть сообщение
We should guess what is the errors? bring them here.
I want that cmd only can used by the leader or member of faction number 14 here is the default code
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/tune", cmdtext, true, 10) == 0)
	{
	    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	    {
			CarmodDialog(playerid);
			return 1;
		}
		else SendClientMessage(playerid,RED,"You must be in a vehicle to open this dialog!");
	}
	return 0;
}
public OnRconCommand(cmd[])
{
	return 1;
}
Reply


Messages In This Thread
OnPlayerCommandText problem - by Auditore155 - 20.06.2014, 06:12
Re: OnPlayerCommandText problem - by ]Rafaellos[ - 20.06.2014, 06:16
Re: OnPlayerCommandText problem - by Auditore155 - 20.06.2014, 06:34
Re: OnPlayerCommandText problem - by ]Rafaellos[ - 20.06.2014, 06:39
Re: OnPlayerCommandText problem - by Auditore155 - 20.06.2014, 06:42
Re: OnPlayerCommandText problem - by ]Rafaellos[ - 20.06.2014, 07:42
Re: OnPlayerCommandText problem - by Auditore155 - 20.06.2014, 07:50
Re: OnPlayerCommandText problem - by DemME - 20.06.2014, 07:57
Re: OnPlayerCommandText problem - by Auditore155 - 20.06.2014, 08:00
Re: OnPlayerCommandText problem - by Threshold - 20.06.2014, 08:01

Forum Jump:


Users browsing this thread: 1 Guest(s)