07.01.2012, 16:17
i added
under my /engine command but for some reason all vehicles shows that message, i did
this is my onplayerentervehicle script
well i want if the model id is 481 509 510 (bicycles), it
pawn Код:
if(modelid == 481 || 509 || 510) return SendClientMessage(playerid,red,"ERROR: You cannot on the engine for a bike");
pawn Код:
new modelid = GetVehicleModel(playerid);
pawn Код:
new vid = GetPlayerVehicleID(playerid);
new modelid = GetVehicleModel(playerid);
if(modelid == 481 || 509 || 510)
{
vengine[vid] = 1;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,true,lights,alarm,doors,bonnet,boot,objective);
}
if(vengine[vid] == 0)
{
SendClientMessage(playerid,lightyellow,"This vehicle engines are off, use /engine to on it");
}