08.01.2013, 17:29
I dont know what it is but this code Sucks it dont work it skips what the hell its tould to do..
Does what it wants to do
/enter works Great .... Takes you to the right Place
/exit No it dont work it takes you to The first Command San Fierro Fire Department Virtual worlds are Being Set And Showing On command when i type /iwinfo It Sends me a message stating that im in that interior and virtual world but the damn exit sends me to san fierro no matter what i DO here the code..
OMFG "facepalm" Nevermind I see the problem but there others but they dont have same Exit cords but u stay in the interior and u never leave
Does what it wants to do
/enter works Great .... Takes you to the right Place
pawn Код:
CMD:enter(playerid,params[])
{
else if(IsPlayerInRangeOfPoint(playerid, 5.0,1743.4860,-1795.7599,13.6674))// Los Santos Fire Station Entrance....
{
SetPlayerPos(playerid,246.783996,63.900199,1003.640625);
SetPlayerFacingAngle(playerid, 248.4081);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,6);
SetPlayerVirtualWorld(playerid, 4);
format(string, sizeof(string),"Welcome To San Fierro Fire Department");
SendClientMessage(playerid, ORANGE,string);
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0,1748.4948,2080.3115,10.8203))// Las Ventures Fire Station Entrance....
{
SetPlayerPos(playerid,246.783996,63.900199,1003.640625);
SetPlayerFacingAngle(playerid, 248.4081);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,6);
SetPlayerVirtualWorld(playerid, 5);
format(string, sizeof(string),"Welcome To San Fierro Fire Department");
SendClientMessage(playerid, ORANGE,string);
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0,-2025.3016,67.0200,28.4671))// San Fierro Fire Station Entrance....
{
SetPlayerPos(playerid,246.783996,63.900199,1003.640625);
SetPlayerFacingAngle(playerid, 248.4081);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,6);
SetPlayerVirtualWorld(playerid, 6);
format(string, sizeof(string),"Welcome To San Fierro Fire Department");
SendClientMessage(playerid, ORANGE,string);
}
return 1;
}
pawn Код:
CMD:exit(playerid,params[])
{
else if(IsPlayerInRangeOfPoint(playerid, 5.0,246.783996,63.900199,1003.640625)) // San Fierro Fire Station Entrance....
{
if(GetPlayerVirtualWorld(playerid) == 6)
{
SetPlayerPos(playerid,-2025.3016,67.0200,28.4671);
SetPlayerFacingAngle(playerid, 248.4081);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
}
else if(GetPlayerVirtualWorld(playerid) == 4)
{
SetPlayerPos(playerid,-2025.3016,67.0200,28.4671);
SetPlayerFacingAngle(playerid, 248.4081);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
}
else if(GetPlayerVirtualWorld(playerid) == 5)
{
SetPlayerPos(playerid,-2025.3016,67.0200,28.4671);
SetPlayerFacingAngle(playerid, 248.4081);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
}
return 1;
}
OMFG "facepalm" Nevermind I see the problem but there others but they dont have same Exit cords but u stay in the interior and u never leave