How to add pickup icon?
#1

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
Reply
#2

Код:
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.
Reply
#3

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

Thank you guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)