[Include] Car Weapon switch (QElike)
#1

Hey there!
There is my first include - switching weapons in car with Q - E, very comfortable.
For allow switch for everyone, put this to OnGameModeInit (banbadweaps is optional. When you set it on true [ or you don't do anything], it will ban RPG, HS RPG and flamethrower for shooting from car, when you set it to false, weapons can be used [or .. "used", becouse you can't shoot from car with flamethrower .. ])
Код:
M_AllowForAll(true,banbadweaps=true);
for disable
Код:
M_AllowForAll(false);
allow for specific playerid
Код:
M_AllowForPlayer(playerid,true);
deny for specific playerid
Код:
M_AllowForPlayer(playerid,false);
Allow some weapon for all
Код:
M_AllowWeapon(weaponid,true);
Deny some weapon for all
Код:
M_AllowWeapon(weaponid,false);
Allow some weapon for playerid
Код:
M_AllowWeaponForPlayer(playerid,weaponid,true);
Deny some weaon for playerid
Код:
M_AllowWeaponForPlayer(playerid,weaponid,false);
Now, add some stocks to publics:
OnPlayerConnect
Код:
M_OnPlayerConnect(playerid);
OnPlayerUpdate
Код:
M_OnPlayerUpdate(playerid);
OnPlayerKeyStateChange
Код:
M_CarSwitch(playerid,newkeys);
Author: Mmartin (me)
Licency: I dont care. Just enjoy and say 'Thanks'

DOWNLOAD: http://solidfiles.com/d/39fca/
VIDEO: [ame]http://www.youtube.com/watch?v=mFO1Rpgd_1k[/ame]
Reply


Messages In This Thread
Car Weapon switch (QElike) - by Mmartin - 01.04.2011, 11:52
Re: Car Weapon switch (QElike) - by Cypress - 01.04.2011, 12:26
Re: Car Weapon switch (QElike) - by Mmartin - 01.04.2011, 12:28
Re: Car Weapon switch (QElike) - by BASITJALIL - 01.04.2011, 12:49
Re: Car Weapon switch (QElike) - by Mmartin - 01.04.2011, 12:52
AW: Car Weapon switch (QElike) - by Meta - 01.04.2011, 13:02
Re: Car Weapon switch (QElike) - by Mmartin - 01.04.2011, 13:38
Re: Car Weapon switch (QElike) - by Venice - 01.04.2011, 13:42
Re: Car Weapon switch (QElike) - by Mmartin - 01.04.2011, 13:46
Re: Car Weapon switch (QElike) - by Mmartin - 01.04.2011, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)