05.08.2011, 02:41
pawn Код:
command(eon, playerid, params[])
{
#pragma unused params
if(GetPlayerState(playerid) == 2)
{
new string[128], engine, lights, alarm, doors, bonnet, boot, veh, objective;
GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
if(engine == 1) return SendClientMessage(playerid,WHITE,"blahblahblah");
format(string, sizeof(string), "%s has turned their engine on.", RemoveUnderScore(playerid));
NearByMessage(playerid, PINK, string);
veh = GetPlayerVehicleID(playerid);
SetVehicleParamsEx(veh, 1, lights, alarm, doors, bonnet, boot, 0);
}
}
else
{
SendClientMessage(playerid, WHITE, "You are not driving a vehicle!");
}
return 1;
}