SA-MP Forums Archive
Help with forbidden item - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with forbidden item (/showthread.php?tid=334659)



Help with forbidden item - iWaYz - 15.04.2012

Hello guys I have problem with my VIP command I mean with /jetpack... Actually everything works fine for me but when someone type /jetpack nothing happens and in the server_log file I saw this:
Код:
[17:30:12] [junkbuster] Could not give '[NSG]ShaDoWw' a jetpack because it's forbidden.
I've tried to edit the JunkBuster.cfg but with no result


Re: Help with forbidden item - Faisal_khan - 15.04.2012

Post your /jetpack code and one of your vip code.


Re: Help with forbidden item - iWaYz - 15.04.2012

Код:
if(strcmp(cmd, "/jetpack", true) == 0)
	{
		if (PlayerInfo[playerid][pDonateRank] >= 2)
		{
 			GivePlayerGun(playerid, 21);
		}
		else
		{
			SendClientMessage(playerid, COLOR_GRAD1,"ERROR: You are not a VIP");
		}
		return 1;
	}
Here...


Re: Help with forbidden item - tyler12 - 15.04.2012

Show forbidden weapons in junkbuster configuration..


Re: Help with forbidden item - iWaYz - 15.04.2012

Код:
35
36
37
38
This is in ForbiddenWeapons.cfg


Re: Help with forbidden item - Vince - 15.04.2012

A jetpack is not a weapon. Check in the main configuration or edit the script.


Re: Help with forbidden item - iWaYz - 15.04.2012

So what I need to enable the jetpack?


Re: Help with forbidden item - Faisal_khan - 15.04.2012

pawn Код:
if(strcmp(cmd, "/jetpack", true) == 0)
    {
        if (PlayerInfo[playerid][pDonateRank] >= 2)
        {
            SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1,"ERROR: You are not a VIP");
        }
        return 1;
    }



Re: Help with forbidden item - iWaYz - 15.04.2012

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/jetpack", true) == 0)
    {
        if (PlayerInfo[playerid][pDonateRank] >= 2)
        {
            SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1,"ERROR: You are not a VIP");
        }
        return 1;
    }
Not working in server_log file still shows
Код:
[18:45:28] [junkbuster] Could not give 'StandAlone' a jetpack because it's forbidden.



Re: Help with forbidden item - iWaYz - 15.04.2012

anyone?