Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

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

$
0
0
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 Code:

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 Code:

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

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>