Set player vehicle on teleport
#5

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;
    }
Reply


Messages In This Thread
Set player vehicle on teleport - by Beginnercoder - 12.02.2011, 16:40
Re: Set player vehicle on teleport - by Ash. - 12.02.2011, 16:43
Re: Set player vehicle on teleport - by HyperZ - 12.02.2011, 17:13
Re: Set player vehicle on teleport - by Beginnercoder - 12.02.2011, 17:18
Re: Set player vehicle on teleport - by Shadow™ - 12.02.2011, 17:52
Re: Set player vehicle on teleport - by Beginnercoder - 12.02.2011, 20:58
Re: Set player vehicle on teleport - by Voldemort - 12.02.2011, 22:04

Forum Jump:


Users browsing this thread: 4 Guest(s)