22.07.2011, 15:44
First Question:
How to make the yellow markers example in CJ House to dissapear all ??
Second Question:
I need help for this:
So I made a Hospital interior for all Medical Centers.
See the code:
I did this if(VirtualWorld == 21) so I go as for example by LS Hospital and out, to let me from where I was enter.Same thing and for the others.
But the problem is, when enter one man in hospital the others can't enter the hospital.
So what to do ?
Sorry for my bad English.
How to make the yellow markers example in CJ House to dissapear all ??
Second Question:
I need help for this:
So I made a Hospital interior for all Medical Centers.
See the code:
Код:
if(IsPlayerInRangeOfPoint(playerid, 1, 1172.5707,-1323.3300,15.4030)) // LS Hospital 1 { if(VirtualWorld == 0) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid, 354.2382,167.5445,1019.9844); SetPlayerFacingAngle(playerid,176.4277); SetPlayerVirtualWorld(playerid, 20); VirtualWorld = 21; } } if(IsPlayerInRangeOfPoint(playerid, 1, 2034.1692,-1402.2471,17.2948)) // LS Hospital 2 { if(VirtualWorld == 0) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid, 354.2382,167.5445,1019.9844); SetPlayerFacingAngle(playerid,176.4277); SetPlayerVirtualWorld(playerid, 20); VirtualWorld = 22; } } if(IsPlayerInRangeOfPoint(playerid, 1, -2655.0388,639.4140,14.4531)) // SF Hospital { if(VirtualWorld == 0) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid, 354.2382,167.5445,1019.9844); SetPlayerFacingAngle(playerid,176.4277); SetPlayerVirtualWorld(playerid, 20); VirtualWorld = 23; } } if(IsPlayerInRangeOfPoint(playerid, 1, 1607.3379,1816.0784,10.8203)) // LV Hospital { if(VirtualWorld == 0) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid, 354.2382,167.5445,1019.9844); SetPlayerFacingAngle(playerid,176.4277); SetPlayerVirtualWorld(playerid, 20); VirtualWorld = 24; } } if(IsPlayerInRangeOfPoint(playerid, 1, 354.2382,167.5445,1019.9844)) // Hospital Inside { if(VirtualWorld == 21) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1172.5707,-1323.3300,15.4030); SetPlayerFacingAngle(playerid,270.4286); SetPlayerVirtualWorld(playerid, 0); VirtualWorld = 0; } if(VirtualWorld == 22) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 2034.1692,-1402.2471,17.2948); SetPlayerFacingAngle(playerid,176.4277); SetPlayerVirtualWorld(playerid, 0); VirtualWorld = 0; } if(VirtualWorld == 23) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid, -2655.0388,639.4140,14.4531); SetPlayerFacingAngle(playerid,182.0678); SetPlayerVirtualWorld(playerid, 0); VirtualWorld = 0; } if(VirtualWorld == 24) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1607.3379,1816.0784,10.8203); SetPlayerFacingAngle(playerid,358.7332); SetPlayerVirtualWorld(playerid, 0); VirtualWorld = 0; } }
But the problem is, when enter one man in hospital the others can't enter the hospital.
So what to do ?
Sorry for my bad English.