Question about /ban [playerid] or /kick [playerid]
#1

Hi everyone i need a little help i don't know how to ban a player i have just founded that on the wiki
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/banme"true) == 0)
    {
        
// Ban the player that types this command.
        
Ban(playerid);
        return 
1;
    }

but me i want that :

PHP код:
CMD:ban(playeridparams[])
{
    if(
IsPlayerAdmin(playerid))
    {
        if(
IsPlayerConnected(playerid))
        {
            
// here ban the player
        
}
        else
        {
            
SendClientMessage(playerid0xAA3333AA,"[ERREUR]Ce joueur n'est pas connectй.");
        }
    }
    return 
1;

thank for the help
Reply


Messages In This Thread
Question about /ban [playerid] or /kick [playerid] - by Eymeric69 - 29.05.2016, 10:34
Re: Question about /ban [playerid] or /kick [playerid] - by Dayrion - 29.05.2016, 10:53
Re: Question about /ban [playerid] or /kick [playerid] - by Eymeric69 - 29.05.2016, 10:59
Re: Question about /ban [playerid] or /kick [playerid] - by Dayrion - 29.05.2016, 11:06
Re: Question about /ban [playerid] or /kick [playerid] - by Rubey - 29.05.2016, 12:08
Re: Question about /ban [playerid] or /kick [playerid] - by Dayrion - 29.05.2016, 12:23

Forum Jump:


Users browsing this thread: 1 Guest(s)