SA-MP Forums Archive
[Include] Insanity Vehicles Groups - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+----- Forum: Lançamentos/Releases (https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [Include] Insanity Vehicles Groups (/showthread.php?tid=209200)



Insanity Vehicles Groups - CyNiC - 10.01.2011

• 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



Re: Insanity Vehicles Groups - egonzks - 10.01.2011

Muito bom.. Parabens


Re: Insanity Vehicles Groups - Trinix_PoS [Bizu] - 10.01.2011

muinto bom parabens cara


Re: Insanity Vehicles Groups - [Ips]Guh - 10.01.2011

nice Job Cynic...


Re: Insanity Vehicles Groups - TiagoPS - 10.01.2011

Bom Trabalho Cynic


Re: Insanity Vehicles Groups - Ricop522 - 10.01.2011

That's cool man, good work


Re: Insanity Vehicles Groups - CyNiC - 10.01.2011

Valeu pessoal.


Re: Insanity Vehicles Groups - Andre_Elite - 10.01.2011

mt good


Re: Insanity Vehicles Groups - CyNiC - 12.01.2011

Atualizado pra 2.0:

Agora 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


Re: Insanity Vehicles Groups - Trinix_PoS [Bizu] - 12.01.2011

Otimo a 2.0