29.07.2013, 00:52
desculpa errei
pawn Код:
forward MotorPet(vehicleid);
public MotorPet(vehicleid)
{
new velopet5[128];
for (new i=0; i<MAX_PLAYERS; i++)
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
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[i], velopet5);
}
}
}