12.02.2011, 20:58
Ok, I replaced it with this code from above.
But in-game when I type /bikerace it doesn't take me the bike track, it just puts me in a empty interior sort of.
pawn Код:
if((strcmp("/bikerace", cmdtext, true) == 0) || (strcmp("/bikerace", cmdtext, true) == 0))
{
SetPlayerPos(playerid, -1424.9319, -664.5869, 1059.8585);
SetPlayerInterior(playerid, 4);
SetPlayerFacingAngle(playerid, 180);
SendClientMessage(playerid, 0x00FFFFAA, "You've been teleported to Bike Race.");
new Float:x, Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angle);
new vehicleid = CreateVehicle(468, x, y, z, angle, -1, -1, -1);
LinkVehicleToInterior(vehicleid, 4);
PutPlayerInVehicle(playerid, vehicleid, 0);
return 1;
}