SA-MP Forums Archive
Same Interiors = bug. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Same Interiors = bug. (/showthread.php?tid=638643)



Same Interiors = bug. - Thanks - 03.08.2017

Hi everyone. There a bug.. when im trying to make 2Shops like same Interios Example: Burger Shot There alot of shops in same Map right? So im making a Enter Checkpoint and Exit Checkpoint so After i making 2shops like same pickups for exit There will be a Bug... What is it? I enter A Burger shot at LS After i need exit it I'll teleport to LV Burger Shot because making 2Pickups in same interior How to fix it pls?

PHP код:
 if(pickupid == Burger[1] && !PickupCooldown[playerid])
    {
    if(
GetPlayerVirtualWorld(playerid)==10)
    {
        
SetPlayerPos(playerid2363.6062,2071.2256,10.8203);
        
SetPlayerInterior(playerid0);
        
SetPlayerVirtualWorld(playerid0);
    }
    if(
GetPlayerVirtualWorld(playerid)== 20)
    {
        
SetPlayerPos(playerid2469.3982,2034.7217,11.0625);
        
SetPlayerInterior(playerid0);
        
SetPlayerVirtualWorld(playerid0);
    }
    if(
PickupCooldown[playerid])
    {
    
PickupCooldown[playerid] = 0;
    } 
and i also making TOP Script for them...


Re: Same Interiors = bug. - Vince - 04.08.2017

Create an array of the exterior locations. Also use Dynamic pickups for ease of use. Upon entering a store, store the pickupid in a player variable. When the player exits get the location of the pickup the player used to enter by using the id you stored and put the player at that position (Streamer_GetFloatData).


Re: Same Interiors = bug. - Thanks - 04.08.2017

Can you exaplin to me like a code? given me a example code and i'll try it ? ty.


Re: Same Interiors = bug. - Thanks - 12.08.2017

anyone? its took +4weeks non reply.


Re: Same Interiors = bug. - Thanks - 12.08.2017

HELP ME PLEASE.


Re: Same Interiors = bug. - Misiur - 12.08.2017

What have you tried? Vince explained what has to be done. Go ogle specific keywords if you don't know what they mean