13.12.2011, 20:25
I like how all your help threads have the same title. Creative 
Here's a fixed version:

Here's a fixed version:
pawn Код:
CMD:eon(playerid, params[])
{
new
giveplayerid,
string[128],
engine,
lights,
alarm,
doors,
bonnet,
boot,
objective,
vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510)
return SendClientMessageEx(playerid,COLOR_WHITE,"This command can't be used in this vehicle.");
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(engine == VEHICLE_PARAMS_ON)
{
SetVehicleEngine(vehicleid, playerid);
format(string, sizeof(string), "* %s spins a key and turn the vehicle engine off to %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if((engine == VEHICLE_PARAMS_OFF || engine == VEHICLE_PARAMS_UNSET))
{
format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SendClientMessageEx(playerid, TEAM_GROVE_COLOR, "Vehicle engine starting");
SetTimerEx("SetVehicleEngine", 1000, 0, "dd", vehicleid, playerid);
}
return 1;
}