13.05.2012, 16:30
pawn Код:
new string[128];
new Float:Velocity[3];
GetVehicleVelocity(vehicleid, Velocity[0], Velocity[1], Velocity[2]);
if(!ispassenger)
{
if(Velocity[0] > 0.1 || Velocity[1] > 0.1)
{
SendClientMessage(playerid, COLOR_WARNING, "*** Voce nao pode robar veiculos em movimento");
DetectorProx(20.0,playerid,"*** Ele nao pode robar veiculos em movimento",COLOR_ROXO);
TogglePlayerControllable(playerid,0);
}
}
else
{
format(string, sizeof(string), "** %s Entra no veiculo.", pNome(playerid));
DetectorProx(20.0,playerid,string,COLOR_ROXO);
}