Quote:
Originally Posted by DaniceMcHarley
pawn Code:
CMD:infernus(playerid,params[]) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411) { new myobject = CreateObject(359,0,0,-1000,0,0,0,100); AttachObjectToVehicle(myobject, GetPlayerVehicleID(playerid), 1.125000,1.350000,0.075000,91.799980,-0.000001,91.799980); } else { GameTextForPlayer(playerid,"~N~ ~N~ ~N~ ~N~ ~R~ You are not in an ~H~ ~W~ Infernus",2000,5); } }
This code, when you are in an infernus you will be able to spawn the object using /infernus, I know it\'s not what you want, but if you want it, I\'ll make you a more complex code.
|
Wow thanks! Nice work mate. I tried and this works! But actually I was looking for something like this..
If I use /infernus it should automatically put me inside the infernus vehicle with the attachobjects. How?