Little help with Pawn.CMD
#5

PHP код:
public OnPlayerCommandReceived(playeridcmd[], params[], flags
{
    if(!
P[playerid][Logged] || !P[playerid][IsSpawned]) return 0;
    return 
1;
}
public 
OnPlayerCommandPerformed(playeridcmd[], params[], resultflags)

    
printf("[CMD] %s"cmd);
    if(
result == -1)
    { 
        
SendClientMessage(playerid0xff0000ff"*SERVER {ffffff}Unknown command. Please refer to /help"); 
        return 
0
    }     
    return 
1

EDIT: A mistake
Reply


Messages In This Thread
Little help with Pawn.CMD - by v1k1nG - 14.09.2018, 15:02
Re: Little help with Pawn.CMD - by Sithis - 14.09.2018, 15:04
Re: Little help with Pawn.CMD - by Undef1ned - 14.09.2018, 15:07
Re: Little help with Pawn.CMD - by v1k1nG - 14.09.2018, 15:19
Re: Little help with Pawn.CMD - by Undef1ned - 14.09.2018, 15:21
Re: Little help with Pawn.CMD - by v1k1nG - 14.09.2018, 15:36

Forum Jump:


Users browsing this thread: 2 Guest(s)