17.01.2017, 07:06
Hello, i added icons for get car nrg and for infernus and hydra and i added icon for goto casino in liberty city and 3 icons for army closes but all that not work when i stop inside it
script:
liberty
vehicle:
closes army:
script:
liberty
Код:
new Liberty_enter; new Liberty_exit; ======================================= if(pickupid==Liberty_enter) { SetPlayerInterior(playerid,1); SetPlayerPos(playerid,-794.806396,497.738037,1376.195312); GameTextForPlayer(playerid,"Welcome in~n~~b~Liberty city inside",3000,6); } if(pickupid==Liberty_exit) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-1985.8883,406.5079,35.3299); SetPlayerFacingAngle(playerid,90); } ========================================= and paste========= Liberty_enter = CreatePickup(1318,1,-1982.7072,406.7149,35.3299); Liberty_exit = CreatePickup(1318,1,-795.0205,489.2810,1376.1953);
Код:
new nrg500; new infernus; new hydra; new Sultan; ========= nrg500 = CreatePickup(1318,1,-2013.9174,280.4240,33.5455,-1); infernus = CreatePickup(1318,1,-2013.9760,293.4049,34.4397,-1); Sultan = CreatePickup(1318,1,-303.1436,1516.6692,75.3594,-1); hydra = CreatePickup(1318,1,-1441.7000,507.7233,18.2294,-1); =========== if(pickupid == nrg500) // Check that the pickup ID of the pickup they picked up is mypickup { PlayerPlaySound(playerid,1085,0.0,0.0,0.0); CarSpawner(playerid,522); } if(pickupid == infernus) // Check that the pickup ID of the pickup they picked up is mypickup { PlayerPlaySound(playerid,1085,0.0,0.0,0.0); CarSpawner(playerid,411); } if(pickupid == hydra) // Check that the pickup ID of the pickup they picked up is mypickup { PlayerPlaySound(playerid,1085,0.0,0.0,0.0); CarSpawner(playerid,520); } if(pickupid == Sultan) // Check that the pickup ID of the pickup they picked up is mypickup { new Float:X,Float:Y,Float:Z,Float:Angle,LVehicleIDt; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); LVehicleIDt = CreateVehicle(560,X,Y,Z,Angle,-1,-1,10000); PutPlayerInVehicle(playerid,LVehicleIDt,0); // CMDMessageToAdmins(playerid,"LTunedCar"); AddVehicleComponent(LVehicleIDt, 1028); AddVehicleComponent(LVehicleIDt, 1030); AddVehicleComponent(LVehicleIDt, 1031); AddVehicleComponent(LVehicleIDt, 1138); AddVehicleComponent(LVehicleIDt, 1140); AddVehicleComponent(LVehicleIDt, 1170); AddVehicleComponent(LVehicleIDt, 1028); AddVehicleComponent(LVehicleIDt, 1030); AddVehicleComponent(LVehicleIDt, 1031); AddVehicleComponent(LVehicleIDt, 1138); AddVehicleComponent(LVehicleIDt, 1140); AddVehicleComponent(LVehicleIDt, 1170); AddVehicleComponent(LVehicleIDt, 1080); AddVehicleComponent(LVehicleIDt, 1086); // AddVehicleComponent(LVehicleIDt, 1087); AddVehicleComponent(LVehicleIDt, 1010); PlayerPlaySound(playerid,1085,0.0,0.0,0.0); ChangeVehiclePaintjob(LVehicleIDt,0); SetVehicleVirtualWorld(LVehicleIDt, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(LVehicleIDt, GetPlayerInterior(playerid)); VehicleInfo[LVehicleIDt][Temp] = 1; } =======
Код:
new armyskin; new armyskin2; new armyskin3; ===== armyskin = CreatePickup(1275,1,-1439.5313,490.0922,18.2294,-1); armyskin2 = CreatePickup(1275,1,-1436.0135,490.1181,18.2294,-1); armyskin3 = CreatePickup(1275,1,-1432.3741,490.2552,18.2294,-1); ========== if(pickupid == armyskin) // Check that the pickup ID of the pickup they picked up is mypickup { PlayerPlaySound(playerid,1085,0.0,0.0,0.0); SetPlayerSkin(playerid, 287); } if(pickupid == armyskin2) // Check that the pickup ID of the pickup they picked up is mypickup { PlayerPlaySound(playerid,1085,0.0,0.0,0.0); SetPlayerSkin(playerid, 191); } if(pickupid == armyskin3) // Check that the pickup ID of the pickup they picked up is mypickup { PlayerPlaySound(playerid,1085,0.0,0.0,0.0); SetPlayerSkin(playerid, 179); }