Pickup/interior - 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: Pickup/interior (
/showthread.php?tid=553292)
Pickup/interior -
Desha1 - 29.12.2014
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(1274, 2,1966.6005,1021.6895,992.4688);
robbingpickup1 = CreatePickup(1212, 2,1966.5988,1029.6251,992.4745);
Re : Pickup/interior -
MCZOFT - 29.12.2014
LIke i said before ,
PHP код:
include your zcommands at top of your scirpt .
new robbingpickup;
new robbingpickup1;
CMD:robcommand(playerid, params[])
{
//new Float:X,Float:Y,Float:Z;
//robbingpickup= CreatePickup(model,type, Float:X, Float:Y, Float:Z, Virtualworld);
robbingpickup = CreatePickup(1274, 2,1966.6005,1021.6895,992.4688, 2);
robbingpickup1 = CreatePickup(1212, 2,1966.5988,1029.6251,992.4745,2);
SendClientMessage(playerid, COLOR_RED, "TEST TEST ");
return 1;
}
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
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