19.09.2009, 01:37
Quote:
Originally Posted by Blades
Quote:
And you can only start engine if your in a car, so i don't have any problem of that. But, You get jacked before you turn on engine, and you are freezed. Is there any callback/custom callback referring to car jacking? Something like this? pawn Код:
|
Код:
InCar[playerid] = 1;
pawn Код:
public AntiFreeze()
{
for(new i=0;i<GetMaxPlayers();i++)
{
if(!IsPlayerInAnyVehicle(playerid)) && InCar[i] == 1)
{
TogglePlayerControllable(i, false);
InCar[i] = 0;
}
}
return 1;
}