Virtual World [Mapping Related] - 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: Virtual World [Mapping Related] (
/showthread.php?tid=442275)
Virtual World [Mapping Related] -
Beckett - 06.06.2013
Well I'm actually having a problem in interiors. There are 2 businesses using the SAME interior but different virtual world, in the both of businesses, the same objects that's in interior1 shows in interior2, is there a way to fix that? like changing objects VW?
Thanks in advance.
Re: Virtual World [Mapping Related] -
Scenario - 06.06.2013
Use a streamer to set the object's VW.
Re: Virtual World [Mapping Related] -
scout322 - 06.06.2013
Код:
CMD:setvw(playerid, params[])
{
new playerb, vw, string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 2 && PlayerInfo[playerid][pHelper] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(sscanf(params, "ui", playerb, vw)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /setvw [playerid] [VW]");
if(!IsPlayerLoggedIn(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player id.");
SetPlayerVirtualWorld(playerb, vw);
format(string, sizeof(string), " You have set %s's VW %d.", RPN(playerb), vw);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), " %s has set your VW %d.", RPN(playerid), vw);
SendClientMessage(playerb, COLOR_WHITE, string);
return 1;
}
Add this in your gamemode, go in to your biz and change your vw , then edit the cordinates of biz interior in that vw.
Re: Virtual World [Mapping Related] -
Beckett - 06.06.2013
------
Re: Virtual World [Mapping Related] -
Scenario - 06.06.2013
Did you read what I said? That's the solution.
Re: Virtual World [Mapping Related] -
Beckett - 06.06.2013
Quote:
Originally Posted by RealCop228
Did you read what I said? That's the solution.
|
Oooh, didn't read it, my apologies, I'll try that.