11.06.2012, 15:20
(
Last edited by Stefand; 13/06/2012 at 01:01 PM.
)
Hey,
I made a /sb command, but it have to put the player back in his vehicle if he exits the vehicle when he has his seatbelt on.
But it doesn't work..
this part is under:
and this part is under:
I made a /sb command, but it have to put the player back in his vehicle if he exits the vehicle when he has his seatbelt on.
But it doesn't work..
this part is under:
pawn Code:
if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
pawn Code:
new string2[128];
if(Player[playerid][Seatbelt] == 1)
{
format(string2, sizeof(string2), "~w~You are still ~r~buckled up");
GameTextForPlayer(playerid, string2, 5000, 3);
new playercar = GetPlayerVehicleID(playerid);
new playerseat = GetPlayerVehicleSeat(playerid);
PutPlayerInVehicle(playerid, playercar, playerseat);
}
pawn Code:
if(oldstate == PLAYER_STATE_PASSENGER && newstate == PLAYER_STATE_ONFOOT)
pawn Code:
new string3[128];
if(Player[playerid][Seatbelt] == 1)
{
format(string3, sizeof(string3), "~w~You are still ~r~buckled up");
GameTextForPlayer(playerid, string3, 5000, 3);
new playercar1 = GetPlayerVehicleID(playerid);
new playerseat1 = GetPlayerVehicleSeat(playerid);
PutPlayerInVehicle(playerid, playercar1, playerseat1);
}