Help Scripting
#1

Hello guys,I made an script when you join passenger,you can change your weapons to g-shoot.
But I want to disable from using some weapons in gshoot like deagle cuz it rapid fires!
Can I get some help?

Code:
	else if(newstate == PLAYER_STATE_PASSENGER)
	{
	    new weapID = GetPlayerWeapon(playerid);
		SetPVarInt(playerid, "switch_WeaponID", weapID);
		if(IsBulletWeapon(weapID)) SendClientMessage(playerid, COLOR_JEFE, "[IncredibleRP] {FFFFFF}You can switch weapons using ~k~~CONVERSATION_YES~ / ~k~~CONVERSATION_NO~.");
	    new driverid = GetVehicleDriver(GetPlayerVehicleID(playerid));
Code:
     	switch(GetPlayerWeapon(playerid))
     	{
     	    case 34:
     	        SetPlayerArmedWeapon(playerid, GetScriptWeapon(playerid));
	        default:
				SetPlayerArmedWeapon(playerid, 0);
		}
Reply


Messages In This Thread
Help Scripting - by travistaylor - 15.08.2018, 19:04
Re: Help Scripting - by brauf - 15.08.2018, 19:42
Re: Help Scripting - by travistaylor - 15.08.2018, 19:54
Re: Help Scripting - by travistaylor - 15.08.2018, 20:14

Forum Jump:


Users browsing this thread: 1 Guest(s)