Hlp me please +REP1 !
#3

pawn Код:
CMD:siren(playerid , params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFF00000FF,"You're not inside a vehicle");//checking if the player inside any vehicle you can customize the model by using GetVehicleModel function !=
    new SirenObject,VID;//declarying
    SirenObject = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
    AttachObjectToVehicle(SirenObject,VID, 0.0, 0.75, 0.275, 0.0, 0.1, 0.0);
    return 1;
}
Sources : https://sampwiki.blast.hk/wiki/IsPlayerInAnyVehicle
https://sampwiki.blast.hk/wiki/AttachObjectToVehicle
Reply


Messages In This Thread
Hlp me please +REP1 ! - by VenomMancer - 22.12.2013, 17:47
Re: Hlp me please +REP1 ! - by iBeast - 22.12.2013, 17:53
Re: Hlp me please +REP1 ! - by SilentSoul - 22.12.2013, 17:56
Re: Hlp me please +REP1 ! - by VenomMancer - 23.12.2013, 02:14

Forum Jump:


Users browsing this thread: 1 Guest(s)