24.06.2009, 11:45
You're lucky I use this myself.
pawn Код:
enum vInfo
{
IsStarted
}
new VehicleInfo[MAX_VEHICLES][vInfo];
// /start command:
VehicleInfo[vehicleid][IsStarted] = 1;
// /stop command
VehicleInfo[vehicleid][IsStarted] = 0;
// OnPlayerStateChange
if(VehicleInfo[vehicleid][IsStarted] == 1) SendClientMessage(playerid, COLOR, "the car is running");
else SendClientMessage(playerid, COLOR, "Type /start to start the vehicle");