Pickup/interior
#1

hello guys
my problem My Pickups Not Showing Cuz im My Pos in interior
how to add in my pickup interior to can showing ?
PHP код:
    robbingpickup CreatePickup(12742,1966.6005,1021.6895,992.4688); 
    
robbingpickup1 CreatePickup(12122,1966.5988,1029.6251,992.4745); 
Reply
#2

LIke i said before ,

PHP код:

include your zcommands at top of your scirpt .
new 
robbingpickup
new 
robbingpickup1;  
CMD:robcommand(playeridparams[])  
{  
    
//new Float:X,Float:Y,Float:Z;  
    //robbingpickup= CreatePickup(model,type, Float:X, Float:Y, Float:Z, Virtualworld);
    
robbingpickup CreatePickup(12742,1966.6005,1021.6895,992.46882);  
    
robbingpickup1 CreatePickup(12122,1966.5988,1029.6251,992.4745,2);  
    
SendClientMessage(playeridCOLOR_RED"TEST TEST  ");  
    return 
1;  

PHP код:
public OnPlayerPickUpPickup(playeridpickupid

    if(
pickupid == robbingpickup
    { 
        
DestroyPickup(robbingpickup); 
    } 
    else if(
pickupid == robbingpickup1
    { 
        
DestroyPickup(robbingpickup1); 
    } 
    return 
1

and Dont Forget , if you want the Player to See the Pickup in the Interior you need to make when the Player enters the (Interior ) , SetPlayerVirtualWorld(playerid, 2); and SetPlayerInterior(playerid, 10) When he goes Out , SetPlayerVirtual World to normal and other One to Normal too ,

Good luck
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)