[Include] Insanity Vehicles Groups
#1

• Insanity Vehicles Groups •

- Descriзгo

O include te permite ajustar qualquer veнculo pra qualquer grupo criado por vocк, e cada veнculo sу poderб ser dirigido por jogadores do grupo ou nгo, vocк pode ajustar.

- Autor

Allan Jader (CyNiC)


Funзхes
pawn Код:
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();

Configuraзгo
Й necessбrio adcionar estas trкs funзхes em seu Gamemode/Filterscript

pawn Код:
VehicleGroupStateChange(playerid, newstate);       //Add no inнcio do callback OnPlayerStateChange
VehicleGroupStreamIn(vehicleid, forplayerid);      //Add no inнcio do callback OnVehicleStreamIn
vGroup_OnGameModeInit();                           //Add no inнcio do callback OnGameModeInit
#define MAX_GROUPS 50                              //Altere pra quanto quiser

Exemplo de uso no rivershell

http://pastebin.com/XvkQr0vG
Download[Versгo 1.0]

http://www.4shared.com/file/8397z9yp/vgroup.html

Download[Versгo 2.0]

Os veнculos podem ter mais que um grupo, os nomes das funзхes foram alterados, e algumas coisas pequenas foram otimizadas.

http://www.4shared.com/file/A64wSTnu/vgroup_2.html
Reply


Messages In This Thread
Insanity Vehicles Groups - by CyNiC - 10.01.2011, 02:48
Re: Insanity Vehicles Groups - by egonzks - 10.01.2011, 04:34
Re: Insanity Vehicles Groups - by Trinix_PoS [Bizu] - 10.01.2011, 10:11
Re: Insanity Vehicles Groups - by [Ips]Guh - 10.01.2011, 16:47
Re: Insanity Vehicles Groups - by TiagoPS - 10.01.2011, 16:59
Re: Insanity Vehicles Groups - by Ricop522 - 10.01.2011, 17:57
Re: Insanity Vehicles Groups - by CyNiC - 10.01.2011, 19:22
Re: Insanity Vehicles Groups - by Andre_Elite - 10.01.2011, 21:20
Re: Insanity Vehicles Groups - by CyNiC - 12.01.2011, 15:36
Re: Insanity Vehicles Groups - by Trinix_PoS [Bizu] - 12.01.2011, 15:47

Forum Jump:


Users browsing this thread: 1 Guest(s)