06.03.2009, 17:16
Hey, if your reading this, thanks :P
I've made a script that when typing /tune if your car is aivalable for transfender, wheels arch aneggls, or loco low, it will teleport you to the corresponding interior.However, the objective was to make it so the mod menu (Game side one) will appear, I used the exact co-ordinates from when you drive in to one and it TP's you to the interior. I have made some functions to check whether the vehicle can be modded by either of them, heres my /tune script anyway.
So is there a way to force the mod menu or am I doing something wrong?
Thanks in advance,
NeRoSiS
I've made a script that when typing /tune if your car is aivalable for transfender, wheels arch aneggls, or loco low, it will teleport you to the corresponding interior.However, the objective was to make it so the mod menu (Game side one) will appear, I used the exact co-ordinates from when you drive in to one and it TP's you to the interior. I have made some functions to check whether the vehicle can be modded by either of them, heres my /tune script anyway.
Код:
if(strcmp(cmdtext,"/tune", true) == 0) { new vehicleid = GetPlayerVehicleID(playerid); if(!IsPlayerInTransfenderVehicle(playerid, vehicleid)) { GetPlayerPos(playerid, q, w, e); SetPlayerVirtualWorld(playerid,playerid+1); SetPlayerInterior(playerid, 1); SetVehiclePos(vehicleid,617.5380,-1.9900,1000.6829); LinkVehicleToInterior (vehicleid, 1); SetVehicleVirtualWorld(vehicleid, playerid+1); SetTimer("tuneback",500,true); } else if(!IsPlayerInLocolowVehicle(playerid, vehicleid)) { GetPlayerPos(playerid, q, w, e); SetPlayerVirtualWorld(playerid,playerid+1); SetPlayerInterior(playerid, 2); SetVehiclePos(vehicleid,616.7820,-74.8151,997.6350); LinkVehicleToInterior (vehicleid, 2); SetVehicleVirtualWorld(vehicleid, playerid+1); SetTimer("tuneback",500,true); } else if(!IsPlayerInWAAVehicle(playerid, vehicleid)) { GetPlayerPos(playerid, q, w, e); SetPlayerVirtualWorld(playerid,playerid+1); SetPlayerInterior(playerid, 3); SetVehiclePos(vehicleid,615.2851,-124.2390,997.6350); LinkVehicleToInterior (vehicleid, 3); SetVehicleVirtualWorld(vehicleid, playerid+1); SetTimer("tuneback",500,true); } return 1; }
Thanks in advance,
NeRoSiS