Posts: 352
Threads: 37
Joined: Jun 2012
if (PlayerInfo[playerid][pAdmin]>1)
Change > to <
Posts: 267
Threads: 49
Joined: Dec 2012
Reputation:
0
< = - Level 1, > = + Level 1, wich means > 1 = Can kick the player, < 1 cannot kick him.
Posts: 101
Threads: 22
Joined: Apr 2011
Reputation:
0
I though a kick command is to kick people... What you're trying to do ? I didn't understtand...
Posts: 1,099
Threads: 79
Joined: Nov 2011
Reputation:
0
CMD:kick(playerid, params[])
new id;
{
if (PlayerInfo[playerid][pAdmin]>1)
{
Kick(id);
}
else
{
SetPlayerSkin(id,29);
}
return 1;
}
Posts: 25
Threads: 3
Joined: Jan 2016
Reputation:
0
CMD:kick(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new RecieverID;
if(sscanf(params,"u",RecieverID)) return SendClientMessage(playerid,0xFFFFFF,"/kick [id]
if(PlayerInfo[RecieverID][pAdmin] >= 1) return SetPlayerSkin(playerid,29);
Kick(Recieverid);
}
else
{
SendClientMessage(playerid,0xFFFFFF,"You are not admin");
}
return 1;
}
Posts: 14
Threads: 0
Joined: Apr 2017
i didnt understand waht you are trying to do?