[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
#2

Muito bom.. Parabens
Reply
#3

muinto bom parabens cara
Reply
#4

nice Job Cynic...
Reply
#5

Bom Trabalho Cynic
Reply
#6

That's cool man, good work
Reply
#7

Valeu pessoal.
Reply
#8

mt good
Reply
#9

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
Reply
#10

Otimo a 2.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)