03.03.2011, 08:42
Ok i found the problem.
That line teleports you to airport SF instead of stadium LS. How to solve ? (Sorry for 2 post)
pawn Код:
if (strcmp(cmdtext, "/race", true) == 0)
{
new Float:garx, Float:gary, Float:garz;
if(city == 1)
{
garx = StadiumPosition_LS[0][0];
gary = StadiumPosition_LS[0][1];
garz = StadiumPosition_LS[0][2];
}
if (PlayerToPoint(5, playerid, garx, gary, garz))
{
SetPlayerInterior(playerid, 7);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, -1403.7610,-227.0062,1043.2185); // This line
format(string, sizeof(string), "%s has entered the race stadium (/race)!", PlayerName[playerid]);
SendClientMessageToAll(COLOR_YELLOW, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcome to the race stadium, press /exitstadium to exit.");
PlayerInStadium[playerid] = 1;
}
else
{
if(city == 1){SendClientMessage(playerid, COLOR_RED, "There is no stadium here, go to the Los Santos stadium in east Los Santos.");}
}
return 1;
}