28.01.2013, 18:06
(
Последний раз редактировалось NuTShoT; 02.02.2013 в 00:05.
)
@RESOLVIDO +rep A TODOS
//Topo do Gamemode Filterscript
new AttachedObj[ 50 ];
//Em OnGameModeInit
public OnGameModeInit()
{
AttachedObj[ 0 ] = CreateObject( modelid, X,Y,Z );
return true;
}
//Em Seu Comando Exemplo:
CMD:attached( playerid , vehicleid )
{
AttachObjectToVehicle( AttachedObj[ 0 ], GetPlayerVehicleID( playerid ), Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ );
return true;
}
Originally Posted by wiki.sa-mp.com
AttachObjectToVehicle(objectid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ)
|
Fiz um exemplo Veja abaixo:
pawn Код:
|