PickUp in interrior dont working
#1

hello everyone

I have very annoying problem, i creating roleplay server, all is fine, working great, but one thing..

I transfered FBI base to Los Santos, spawned cars, created inside/outside pickups (to get in bulding/interior and get out of that) thats ok.

I maded two pickups. Its weapon pickup with dialog text (can choose weapons), and skin pickup (can choose skins, ex. gangs, mafia and others) But it dont work, i tried to fix this all day, but nothing..
PHP код:
new fbi[2];
new 
pickfbi[4]; 
PHP код:
if(pickupid == fbi[0]) //FBI 1
    
{
        
SetPlayerInterior(playerid4);
        
SetPlayerVirtualWorld(playerid2);
        
SetPlayerPos(playerid,286.1680,-83.9736,1001.5156);
        
SetPlayerFacingAngle(playerid,356.2);
    }
    if(
pickupid == fbi[1]) //FBI 2
    
{
        
SetPlayerInterior(playerid0);
        
SetPlayerVirtualWorld(playerid0);
        
SetPlayerPos(playerid,942.4717,-1744.5734,13.5469);
        
SetPlayerFacingAngle(playerid274.31);
    }
    if(
pickupid == pickfbi[0]) //FBI Skins
    
{
        if(
PlayerInfo[playerid][pMember] != 13)return 1;
        
ShowPlayerDialog(playerid,PREKRUTIEDIALOG_STYLE_LIST"{DB7095}Choose Skin!""Groove Street\nThe Ballas\nLos Santos Vagos\nThe Rifa\nVarior Los Aztecas\nLa Cosa Nostra\nYakuza\nРусская Мафия\n - Change Back""Done""EXIT");
    }
    if(
pickupid == pickfbi[2]) //tear FBI
    
{
        
SetPlayerInterior(playerid4);
        
SetPlayerVirtualWorld(playerid2);
        
SetPlayerPos(playerid,301.4785,-78.3682,1001.5156);
        
SetPlayerFacingAngle(playerid133.8311);
    }
    if(
pickupid == pickfbi[3]) //tear FBI
    
{
        
SetPlayerInterior(playerid7);
        
SetPlayerVirtualWorld(playerid2);
        
SetPlayerPos(playerid,303.0892,-140.0957,1004.0625);
        
SetPlayerFacingAngle(playerid18.8311);
    }
    if(
pickupid == pickfbi[1]) //FBI weps
    
{
  if(
PlayerInfo[playerid][pMember] != 13 && PlayerInfo[playerid][pMember] != 9)return 1;
        
ShowPlayerDialog(playerid,GUNLVPDDIALOG_STYLE_LIST"{fde910}FBI""1. Baton\n2. Armour\n3. Desert Eagle\n4. Silenced 9mm\n5. MP5\n6. Shield\n7. Sniper""Choose""Exit");
    } 
PHP код:
fbi[0] = CreatePickup(19133,23,943.0108,-1742.5677,13.5546);//fbi вход
    
fbi[1] = CreatePickup(19133,23,285.8751,-86.7779,1001.5229);//fbi выход
    
pickfbi[0] = CreatePickup(1275,23,287.9043,-76.9199,1001.5156,2);//fbi skin
    
pickfbi[1] = CreatePickup(1239,23,294.3549,-83.6069,1001.5156);//fbi gun
    
pickfbi[2] = CreatePickup(1318,23,304.1519,-141.7657,1004.0625);//fbi tear
    
pickfbi[3] = CreatePickup(1318,23,301.5671,-76.5421,1001.5156);//fbi fbi tear 
I hope u guys can help me with this,
thanks anyway
Reply
#2

Pickup type 23?
https://sampwiki.blast.hk/wiki/CreatePickup
Also set virtual world at end, -1 for all.
Reply
#3

Did you add a function to your dialogs?

Check "OnDialogResponse"
https://sampwiki.blast.hk/wiki/OnDialogResponse
Reply
#4

Try this
Код:
    pickfbi[0] = CreatePickup(1275,23,287.9043,-76.9199,1001.5156,-1);//fbi skin
    pickfbi[1] = CreatePickup(1239,23,294.3549,-83.6069,1001.5156,-1);//fbi gun
    pickfbi[2] = CreatePickup(1318,23,304.1519,-141.7657,1004.0625,-1);//fbi tear
    pickfbi[3] = CreatePickup(1318,23,301.5671,-76.5421,1001.5156,-1);//fbi fbi tear
Reply
#5

Quote:
Originally Posted by [HRD]Mar1
Посмотреть сообщение
Try this
Код:
    pickfbi[0] = CreatePickup(1275,23,287.9043,-76.9199,1001.5156,-1);//fbi skin
    pickfbi[1] = CreatePickup(1239,23,294.3549,-83.6069,1001.5156,-1);//fbi gun
    pickfbi[2] = CreatePickup(1318,23,304.1519,-141.7657,1004.0625,-1);//fbi tear
    pickfbi[3] = CreatePickup(1318,23,301.5671,-76.5421,1001.5156,-1);//fbi fbi tear
There is no pickup type 23 according to the wiki
Reply
#6

Quote:
Originally Posted by Richie©
Посмотреть сообщение
There is no pickup type 23 according to the wiki
It still working in my server =D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)