20.08.2011, 20:17
Hello everybody
I had a bug while changing places exactly from interior x (stadiums...) to 0 (normal) WITH VEHICLE
When I am in 'Kickstart' stadium or other interior != 0, every things went good (cars appears, interior works very well...) but when I try to leave that stadium to change place like go to '/lv1' within the stadium car, that bug because it send
And in LV1 position nothing shown because it still the same interior of KickStart Stadium, cars are hidden, buildings too...
This is the /lv1 command:
If I am OnFoot in stadium that works very well but InCar !!!
I want if a player in stadium and he is in car and try to leave the stadium:
Remove him from his car.
Teleport him with no bugs.
Sorry for my bad English :$
Please I need your help :/
I had a bug while changing places exactly from interior x (stadiums...) to 0 (normal) WITH VEHICLE
When I am in 'Kickstart' stadium or other interior != 0, every things went good (cars appears, interior works very well...) but when I try to leave that stadium to change place like go to '/lv1' within the stadium car, that bug because it send
Code:
SERVER: Unknown Command.
This is the /lv1 command:
pawn Code:
if (strcmp("/lv1", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(InStadium[playerid] == 1)
{
RemovePlayerFromVehicle(playerid);
return InStadium[playerid] = 0;
}
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
SetPlayerInterior(GetPlayerVehicleID(playerid), 0);
SetVehicleZAngle(GetPlayerVehicleID(playerid),269.1614);
return SetVehiclePos(GetPlayerVehicleID(playerid),1991.2103,1093.3450,10.6719);
}
else
{
InStadium[playerid] = 0;
SetPlayerPos(playerid,1986.5909,1083.7815,10.8203);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 234.0678);
}
I want if a player in stadium and he is in car and try to leave the stadium:
Remove him from his car.
Teleport him with no bugs.
Sorry for my bad English :$
Please I need your help :/