My Kick Script Bug
#1

Sorry im newbie
When I Just Make /kick Then It Will Kick The person are using id 0
Here Is the Code
COMMAND:kick(playerid,params[])
{
new id,n[MAX_PLAYER_NAME],on[MAX_PLAYER_NAME];
new tmp[256], Index, str[49];
tmp = strtok(params,Index), id = strval(tmp);
GetPlayerName(id,on,sizeof(on));
GetPlayerName(playerid,n,sizeof(n));
if(AccInfo[playerid][Admin] < 3) return SendClientMessage(playerid,LIGHT_RED,"You need to be level 3 to use this command!");
if(!strlen(params)) return SendClientMessage(playerid,GREY,"USAGE: /kick <ID> ");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,GREY,"Invalid ID");
format(str,sizeof(str),"%s has kicked %s",n,on);
SendClientMessageToAll(LIGHT_BLUE,str);
Kick(id);
return 1;
}
Reply


Messages In This Thread
My Kick Script Bug - by dh240473 - 20.02.2015, 22:51
Re: My Kick Script Bug - by Abagail - 20.02.2015, 23:04
Re: My Kick Script Bug - by dh240473 - 20.02.2015, 23:12
Re: My Kick Script Bug - by dh240473 - 20.02.2015, 23:16

Forum Jump:


Users browsing this thread: 1 Guest(s)