Virtual World [Mapping Related]
#3

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


Messages In This Thread
Virtual World [Mapping Related] - by DaniceMcHarley - 06.06.2013, 18:22
Re: Virtual World [Mapping Related] - by Scenario - 06.06.2013, 18:45
Re: Virtual World [Mapping Related] - by scout322 - 06.06.2013, 18:46
Re: Virtual World [Mapping Related] - by DaniceMcHarley - 06.06.2013, 18:53
Re: Virtual World [Mapping Related] - by Scenario - 06.06.2013, 18:53
Re: Virtual World [Mapping Related] - by DaniceMcHarley - 06.06.2013, 19:06

Forum Jump:


Users browsing this thread: 2 Guest(s)