22.06.2009, 15:03
Ok,so I use a complex system of stores and things like that.Like,whenever a player enters a pickup it will TP him to a shop and set a certain virtual world.If the player has certain virtual worlds,there will be different exits.
If you didn't understand,this is my code.
The problem is:
If the player enters once the pickup calles "exitp",he can't enter it again untill he relogs,the pickups just won't show up anymore.
What is the problem?
Thanks in advance
If you didn't understand,this is my code.
Quote:
if (pickupid == exitp) { if (GetPlayerVirtualWorld(playerid) == 22) { format(string, sizeof(string), "~w~ Los Santos ~n~ ~w~ Pershing Square"); GameTextForPlayer(playerid, string, 100, 1); SetPlayerPos(playerid,1351.6871,-1753.7148,13.3516); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } else if (GetPlayerVirtualWorld(playerid) == 23) { format(string, sizeof(string), "~w~ Los Santos ~n~ ~w~ Atrium"); GameTextForPlayer(playerid, string, 100, 1); SetPlayerPos(playerid,1670.9865,-1585.9718,13.5469); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } else if (GetPlayerVirtualWorld(playerid) == 24) { format(string, sizeof(string), "~w~ Los Santos ~n~ ~w~ Jefferson"); GameTextForPlayer(playerid, string, 100, 1); SetPlayerPos(playerid,2142.3367,-1168.5657,23.9922); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } else if (GetPlayerVirtualWorld(playerid) == 25) { format(string, sizeof(string), "~w~ Los Santos ~n~ ~w~ Santa Maria Beach"); GameTextForPlayer(playerid, string, 100, 1); SetPlayerPos(playerid,520.6794,-1813.4641,6.5781); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } } |
If the player enters once the pickup calles "exitp",he can't enter it again untill he relogs,the pickups just won't show up anymore.
What is the problem?
Thanks in advance