Icons Didn't workS!! Help
#1

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
Код:
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);
vehicle:
Код:
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;
  	}
=======
closes army:
Код:
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);
  	}
Reply
#2

Help Pls !!!
Reply
#3

Why u don't use
PHP код:
if( IsPlayerInRangeOfPointplayerid3.0posXposYposZ ) ) 
e.t.c.
Also i think if use this will work.

Ex: That's your script:
PHP код:
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); 
That's the ideea that i think will work:
PHP код:
if( IsPlayerInRangeOfPointplayerid3.0, -1982.7072,406.7149,35.3299 )) // liberty enter pickup inside, posX, posY, posZ
    
{
        
SetPlayerInterior(playerid,1);
        
SetPlayerPos(playerid, -794.806396497.7380371376.195312);
        
GameTextForPlayer(playerid,"Welcome in~n~~b~Liberty city inside",3000,6);
    }
    else if( 
IsPlayerInRangeOfPointplayerid3.0, -795.0205489.28101376.1953 )) // liberty exit pickup inside, posX, posY, posZ
    
{
        
SetPlayerInterior(playerid,0);
        
SetPlayerPos(playerid,-1985.8883,406.5079,35.3299);
        
SetPlayerFacingAngle(playerid,90);
    } 
Also create that pickups and don't use them just let them be there.
And when a player is in the range of that pickup, will automatically teleport him inside. I think.
Also reply and if i'll can i'll try to help u.
Reply
#4

IsPlayerInRangeOfPoint it's about teleport but what about skins and vehicles?
Reply
#5

About liberty Now Works man Thx But Skins and Vehs not works
Reply
#6

Quote:
Originally Posted by vikoo
Посмотреть сообщение
About liberty Now Works man Thx But Skins and Vehs not works
I'm a girl but that's ok.
Do the same for the rest of the pickups with isplayerinrageof.
If u wait maybe i'll do this for u.
Reply
#7

Quote:
Originally Posted by vikoo
Посмотреть сообщение
About liberty Now Works man Thx But Skins and Vehs not works
PHP код:
 ======================================= 
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); 
    } 
you have no skin changes here
Reply
#8

For vehicles.
PHP код:
    new nrg500;
    new 
infernus;
    new 
hydra;
    new 
Sultan;
    
// ALSO CREATE THE PICKUPS JUST TO BE THERE
    
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);
    
// THE RANGE OF THE PICKUPS
    
if( IsPlayerInRangeOfPointplayerid3.0, -2013.9174,280.4240,33.5455 )) // nrg pickup, posX, posY, posZ
    
{
        
PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
        
CarSpawner(playerid,522);
      }
    if( 
IsPlayerInRangeOfPointplayerid3.0, -2013.9760,293.4049,34.4397 )) // infernus pickup, posX, posY, posZ
    
{
        
PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
        
CarSpawner(playerid,411);
      }
    if( 
IsPlayerInRangeOfPointplayerid3.0, -1441.7000,507.7233,18.2294 )) // hydra pickup, posX, posY, posZ
    
{
        
PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
        
CarSpawner(playerid,520);
      }
    if( 
IsPlayerInRangeOfPointplayerid3.0, -303.1436,1516.6692,75.3594 )) // sultan pickup, posX, posY, posZ
    
{
           new 
Float:X,Float:Y,Float:Z,Float:Angle,LVehicleIDtGetPlayerPos(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(LVehicleIDt1028); AddVehicleComponent(LVehicleIDt1030);
        
AddVehicleComponent(LVehicleIDt1031);    AddVehicleComponent(LVehicleIDt1138);
        
AddVehicleComponent(LVehicleIDt1140); AddVehicleComponent(LVehicleIDt1170);
         
AddVehicleComponent(LVehicleIDt1028); AddVehicleComponent(LVehicleIDt1030);
        
AddVehicleComponent(LVehicleIDt1031); AddVehicleComponent(LVehicleIDt1138);
        
AddVehicleComponent(LVehicleIDt1140); AddVehicleComponent(LVehicleIDt1170);
         
AddVehicleComponent(LVehicleIDt1080); AddVehicleComponent(LVehicleIDt1086);
        
//AddVehicleComponent(LVehicleIDt, 1087);
        
AddVehicleComponent(LVehicleIDt1010);
        
PlayerPlaySound(playerid,1085,0.0,0.0,0.0); ChangeVehiclePaintjob(LVehicleIDt,0);
        
SetVehicleVirtualWorld(LVehicleIDtGetPlayerVirtualWorld(playerid));
        
LinkVehicleToInterior(LVehicleIDtGetPlayerInterior(playerid));
        
VehicleInfo[LVehicleIDt][Temp] = 1;
      } 
For skins:
PHP код:
    new armyskin;
    new 
armyskin2;
    new 
armyskin3;
    
    
// ALSO CREATE THE PICKUPS JUST TO BE THERE
    
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);
    
// THE RANGE OF THE PICKUPS
    
if( IsPlayerInRangeOfPointplayerid3.0, -1439.5313,490.0922,18.2294 )) // armyskin pickup, posX, posY, posZ
    
{
        
PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
        
SetPlayerSkin(playerid287);
      }
    if( 
IsPlayerInRangeOfPointplayerid3.0, -1436.0135,490.1181,18.2294 )) // armyskin2 pickup, posX, posY, posZ
    
{
        
PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
        
SetPlayerSkin(playerid191);
      }
    if( 
IsPlayerInRangeOfPointplayerid3.0, -1432.3741,490.2552,18.2294 )) // armyskin3 pickup, posX, posY, posZ
    
{
        
PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
        
SetPlayerSkin(playerid179);
      } 
Let me know if this will not work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)