cmd not working properly
#1

The problem is, the cmd doesn't kick the member. It does send the player a message with "You have been kicked from the organization by the (Co)-Leader" but it doesn't really kick the player... What's wrong about it?
PHP код:
CMD:kickmember(playeridparams[])
{
    if(
PlayerInfo[playerid][LeaderGSF] >= 1)
    {
        new 
targetplayer;
        if(
sscanf(params"i"targetplayer)) return SendClientMessage(playeridCOLOR_WHITE"Usage: /kickmember [ID]");
        
PlayerInfo[targetplayer][MemberGSF] = 0;
        
SendClientMessage(targetplayerCOLOR_RED"You have been kicked from the organization by the (Co)-Leader");
        
SendClientMessage(playeridCOLOR_RED"You kicked the specified member from your Organization");
    }
    else
    {
        
SendClientMessage(playeridCOLOR_RED"Error: You aren't the (Co)-Leader of any organization!");
    }
    return 
1;

Reply


Messages In This Thread
cmd not working properly - by saffierr - 01.09.2015, 20:42
Re: cmd not working properly - by MarvinPWN - 01.09.2015, 20:47
Re: cmd not working properly - by simo0000 - 01.09.2015, 20:55
Re: cmd not working properly - by saffierr - 01.09.2015, 21:20
Re: cmd not working properly - by Bomber07 - 01.09.2015, 21:35
Re: cmd not working properly - by saffierr - 01.09.2015, 21:36
Re: cmd not working properly - by khRamin78 - 02.09.2015, 06:09
Re: cmd not working properly - by benjaminjones - 02.09.2015, 06:44
Re: cmd not working properly - by Roberto80 - 02.09.2015, 06:58
Re: cmd not working properly - by SpaceX - 02.09.2015, 07:15

Forum Jump:


Users browsing this thread: 1 Guest(s)