if (PlayerInfo[playerid][pAdmin]>1)
#15

The command works fine, you're doing something wrong. If your admin level is 1, it won't work because you check if the admin level is equal or greater to 2. If you want for levels 1 and greater, then you have to use '>='.
pawn Code:
CMD:kick(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin]>=1) SetPlayerSkin(playerid,29);
    else Kick(playerid);
    return 1;
}
If the operations confuse you, then read this from SA:MP Wiki - Control Structures#Operators
Reply


Messages In This Thread
if (PlayerInfo[playerid][pAdmin]>1) - by KirovArk - 25.12.2012, 11:03
Re: if (PlayerInfo[playerid][pAdmin]>1) - by kristo - 25.12.2012, 11:05
Respuesta: if (PlayerInfo[playerid][pAdmin]>1) - by Strier - 25.12.2012, 11:15
Re: if (PlayerInfo[playerid][pAdmin]>1) - by Konstantinos - 25.12.2012, 11:19
Re: if (PlayerInfo[playerid][pAdmin]>1) - by KirovArk - 25.12.2012, 12:28
Re: if (PlayerInfo[playerid][pAdmin]>1) - by KirovArk - 25.12.2012, 17:09
Re: if (PlayerInfo[playerid][pAdmin]>1) - by KirovArk - 25.12.2012, 17:41
Re: if (PlayerInfo[playerid][pAdmin]>1) - by KirovArk - 25.12.2012, 17:45
Re: if (PlayerInfo[playerid][pAdmin]>1) - by jNkk - 25.12.2012, 17:56
Re: if (PlayerInfo[playerid][pAdmin]>1) - by Tamer - 25.12.2012, 18:09
Re: if (PlayerInfo[playerid][pAdmin]>1) - by Typhome - 25.12.2012, 18:19
Re: if (PlayerInfo[playerid][pAdmin]>1) - by KirovArk - 25.12.2012, 18:31
Re: if (PlayerInfo[playerid][pAdmin]>1) - by KirovArk - 25.12.2012, 18:38
Re: if (PlayerInfo[playerid][pAdmin]>1) - by KirovArk - 25.12.2012, 18:44
Re: if (PlayerInfo[playerid][pAdmin]>1) - by Konstantinos - 25.12.2012, 18:53
Re: if (PlayerInfo[playerid][pAdmin]>1) - by GokuSsj - 05.01.2014, 06:49
Re: if (PlayerInfo[playerid][pAdmin]>1) - by newbie scripter - 05.01.2014, 06:53
Re: if (PlayerInfo[playerid][pAdmin]>1) - by MatriXgaMer - 05.01.2014, 08:12
Re: if (PlayerInfo[playerid][pAdmin]>1) - by KizZweLL - 27.04.2017, 13:03
Re: if (PlayerInfo[playerid][pAdmin]>1) - by ShaharG - 27.04.2017, 22:06
Re: if (PlayerInfo[playerid][pAdmin]>1) - by Sew_Sumi - 27.04.2017, 23:45

Forum Jump:


Users browsing this thread: 6 Guest(s)