29.07.2013, 01:22
PHP код:
public MotorPet(newstate, vehicleid, ispassenger[]) {
new velopet5[128];
for (new i = 0; i < MAX_PLAYERS; i++) {
if (newstate == PLAYER_STATE_PASSENGER) {
if (motor[i] == 1) {
format(velopet5, sizeof(velopet5), "~r~~h~~h~~h~~h~Motor: ~w~Ligado");
} else if (motor[i] == 0) {
format(velopet5, sizeof(velopet5), "~r~~h~~h~~h~~h~Motor: ~w~Desligado");
}
TextDrawSetString(MotorOnOFF, velopet5);
}
}
}