15.08.2018, 19:04
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?
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); }