01.04.2011, 11:52
(
Последний раз редактировалось Mmartin; 25.11.2012 в 11:28.
)
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 .. ])
for disable
allow for specific playerid
deny for specific playerid
Allow some weapon for all
Deny some weapon for all
Allow some weapon for playerid
Deny some weaon for playerid
Now, add some stocks to publics:
OnPlayerConnect
OnPlayerUpdate
OnPlayerKeyStateChange
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]
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);
Код:
M_AllowForAll(false);
Код:
M_AllowForPlayer(playerid,true);
Код:
M_AllowForPlayer(playerid,false);
Код:
M_AllowWeapon(weaponid,true);
Код:
M_AllowWeapon(weaponid,false);
Код:
M_AllowWeaponForPlayer(playerid,weaponid,true);
Код:
M_AllowWeaponForPlayer(playerid,weaponid,false);
OnPlayerConnect
Код:
M_OnPlayerConnect(playerid);
Код:
M_OnPlayerUpdate(playerid);
Код:
M_CarSwitch(playerid,newkeys);
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]