Help Wrong Command
#3

At the end of the callback OnPlayerCommandText you have to return this message.
Look here:
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext,"/car",true))
    {
        new 
Float:x,Float:y,Float:z;
        
GetPlayerPos(playerid,x,y,z);
        
CreateVehicle(560,x+2,y,z,0,99,99,-1,0);
        return 
1;
    }
    return 
SendClientMessage(playeridCOLOR_WHITE"[Server] That command dosn't exist.");

Reply


Messages In This Thread
Help Wrong Command - by Hazliu - 06.08.2015, 10:19
Re: Help Wrong Command - by MrSwift - 06.08.2015, 10:21
Re: Help Wrong Command - by MarvinPWN - 06.08.2015, 12:02

Forum Jump:


Users browsing this thread: 1 Guest(s)