30.10.2015, 13:27
I've done this
Onto the CMD:engine
and made:
But I'm not sure this is right.
Код:
if(IsFactionVehicle(vehicleid)) { SendClientMessage(playerid, COLOR_WHITE, "[SERVER]: Vehicle engine starting, please wait..."); SetTimerEx("SetVehicleEngine", 1000, 0, "dd", vehicleid, playerid); format(string, sizeof(string), "* %s twists the key in the ignition, turning the engine on.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; }
and made:
Код:
IsFactionVehicle(carid) { switch(GetVehicleModel(carid)) { case 598, 596, 490, 427, 601, 523: return 1; } return 0; }