Daca vrei sa faci sa apara un text cand intra in masina de ex la toate masinile... Faci asa daca folosesti acest sistemul acesta... adaugi asta forward IsAllCars(carid);
apoi
public IsAllCars(carid)
{
if(carid >= 1 || carid <= 1000)
{
return 1;
}
return 0;
}
apoi la onplayerstatechange
if(IsAllCars(newcar) )
{
new vid = GetPlayerVehicleID(playerid);
if(EngineSTATE[newcar] == 1)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Atentie! Foloseste /stopengine pentru a opri masina.");
}
else
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Atentie! Foloseste /startengine pentru a porni masina.");
}
}