SA-MP Forums Archive
How to add pickup icon? - 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: How to add pickup icon? (/showthread.php?tid=553106)



How to add pickup icon? - BlazeGaming - 28.12.2014

This is my code

Код:
CreateDynamicPickup(1239, 23, 2308.8760,-2.4888,26.7422, 0, -1, -1, 50);

if(IsPlayerInRangeOfPoint(playerid, 2.0, 595.5443,-1250.3405,18.2836)) {
	SetPlayerPos(playerid, 2306.8481,-16.0682,26.7496);
	SetPlayerVirtualWorld(playerid, 2);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 2306.8481,-16.0682,26.7496)) {
	SetPlayerPos(playerid, 595.5443,-1250.3405,18.2836);
	SetPlayerVirtualWorld(playerid, 0);
}
Pickup icon it's not work in SetPlayerVirtualWorld(playerid, 2); i dont know how to use it

Sorry if you dont understand
newbie english


Re: How to add pickup icon? - Facerafter - 28.12.2014

Код:
CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
You have set worldid to 0 that means it will only be visible in Virtual World 0.
If you want it set to all virtual worlds set it to -1.


Re: How to add pickup icon? - CoaPsyFactor - 28.12.2014

You should put this in callback, here you can find which callback.


Re: How to add pickup icon? - BlazeGaming - 28.12.2014

Thank you guys!