15.07.2014, 16:06
Quote:
When entering the Idlewood barber shop set the player's vw to 2 for ex.
However when entering the Market's barber shop set it to 3. Now when you /exit, check the player's vw (GetPlayerVirualWorld) if its == 2, set the idlewood coords, if its == 3 set the market exit coords. |
Код:
if(!strcmp(cmdtext, "/exit", true)) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 286.148986,-40.644397,1001.515625)) { if(GetPlayerVirtualWorld(playerid) == 2) { SetPlayerPos(playerid, 2116.3108,-1279.5417,13.5469);//AmmunationExit } else if(GetPlayerVirtualWorld(playerid) == 3) { SetPlayerPos(playerid, 4366.3108,-1279.5417,13.5469);//AmmunationExit } SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0) } } return 1;