[Include] Insanity Vehicles Groups
#1

• Insanity Vehicles Groups •

- Description

It allows you to set any vehicle to any group, and each vehicle only will can
be driven by the player that's of your group(or not, configurable).

- Author

Allan Jader (CyNiC)

- Note

You can change how much you want the filterscript, leaving the credit to the
author.


Functions
pawn Code:
native AddGroupedVehicle(model, group, Float:X, Float:Y, Float:Z, Float:Rotation, color1, color2, bool: lock = false, respawn_delay = 0);
native PutVehicleInGroup(vehicleid, group, bool: lock = false);
native RemoveVehicleFromGroup(vehicleid, group);
native IsVehicleInGroup(vehicleid, group);
native PutPlayerInGroup(playerid, group, bool: unlockforplayer = true);
native RemovePlayerFromGroup(playerid, group, bool: lockforplayer = true);
native IsPlayerInGroup(playerid, group);
native VehicleGroupStateChange(playerid, newstate);
native VehicleGroupStreamIn(vehicleid, forplayerid);
native vGroup_OnGameModeInit();

Configuration

Is necessary add these 3 functions on your Gamemode/Filterscript:
pawn Code:
VehicleGroupStateChange(playerid, newstate);       //Add on init of callback OnPlayerStateChange
VehicleGroupStreamIn(vehicleid, forplayerid);      //Add on init of callback OnVehicleStreamIn
vGroup_OnGameModeInit();                           //Add on init of callback OnGameModeInit
#define MAX_GROUPS 50                              //change for your value

Download Version 1.0
http://www.4shared.com/file/8397z9yp/vgroup.html
Download Version 2.0.2
Vehicles can have more than one group, functions names changed, and small optimizations.
Some problems solved.
http://www.4shared.com/file/dffPB0L9...Groups_20.html
Reply


Messages In This Thread
Insanity Vehicles Groups - by CyNiC - 10.01.2011, 02:36
Re: Insanity Vehicles Groups - by Lorenc_ - 10.01.2011, 03:42
Re: Insanity Vehicles Groups - by TheYoungCapone - 10.01.2011, 03:44
Re: Insanity Vehicles Groups - by ғαιιοцт - 10.01.2011, 03:55
Re: Insanity Vehicles Groups - by Mr.Stranger - 10.01.2011, 04:39
Re: Insanity Vehicles Groups - by CyNiC - 10.01.2011, 14:52
Re: Insanity Vehicles Groups - by Kwarde - 10.01.2011, 14:56
Re: Insanity Vehicles Groups - by CyNiC - 10.01.2011, 16:04
Re: Insanity Vehicles Groups - by Kwarde - 10.01.2011, 16:05
Re: Insanity Vehicles Groups - by CyNiC - 10.01.2011, 16:07
Re: Insanity Vehicles Groups - by Kwarde - 10.01.2011, 16:10
Re: Insanity Vehicles Groups - by CyNiC - 12.01.2011, 04:00
Re: Insanity Vehicles Groups - by cruising - 01.06.2011, 01:48
Re: Insanity Vehicles Groups - by CyNiC - 01.06.2011, 12:41
Re: Insanity Vehicles Groups - by Raimis_R - 01.06.2011, 12:51
Re: Insanity Vehicles Groups - by cruising - 03.06.2011, 00:48
Re: Insanity Vehicles Groups - by xalith - 03.06.2011, 19:18
Re: Insanity Vehicles Groups - by Iphone1234g - 04.06.2011, 05:28
Re: Insanity Vehicles Groups - by DjoleRazbijac - 24.05.2012, 21:06

Forum Jump:


Users browsing this thread: 1 Guest(s)