IsPlayerAdmin...
#5

The problem was at the IsPlayerAdmin. Read the title before posting. He put ";" after if(IsPlayerAdmin(playerid))

Try this:
pawn Код:
case 898:
        {
        if(response)
            {
            if(IsPlayerAdmin(playerid))
                {
                switch(listitem)
                    {
                    case 0:GivePlayerWeapon(playerid, 35, 9999) && SendClientMessage(playerid, 0xFF9900AA, "[INFO]: You've got a rocket launcher.");
                    case 1:GivePlayerWeapon(playerid, 36, 9999) && SendClientMessage(playerid, 0xFF9900AA, "[INFO]: You've got a heat seeker launcher.");
                    case 2:GivePlayerWeapon(playerid, 37, 9999) && SendClientMessage(playerid, 0xFF9900AA, "[INFO]: You've got a flamethrower.");
                    case 3:GivePlayerWeapon(playerid, 38, 9999) && SendClientMessage(playerid, 0xFF9900AA, "[INFO]: You've got a minigun.");
                    case 4:GivePlayerWeapon(playerid, 39, 9999) && SendClientMessage(playerid, 0xFF9900AA, "[INFO]: You've got a satchel charge.");
                    }
                }
            else return cmd_weapons(playerid,"params") && SendClientMessage(playerid, 0xFF000000, "[ERROR]: You are not a RCON admin");
        }
EDIT: ****** posted when I was writing this post
Reply


Messages In This Thread
IsPlayerAdmin... - by LeeXian99 - 18.04.2013, 15:15
Re: IsPlayerAdmin... - by HurtLocker - 18.04.2013, 15:19
Re: IsPlayerAdmin... - by FalconX - 18.04.2013, 15:22
Re: IsPlayerAdmin... - by Gamer_007 - 18.04.2013, 15:23
Re: IsPlayerAdmin... - by [Ro]DuReX - 18.04.2013, 15:42
Re: IsPlayerAdmin... - by LeeXian99 - 18.04.2013, 15:42
Re: IsPlayerAdmin... - by LeeXian99 - 18.04.2013, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)