[Ajuda] Reservar carros empregos
#5

Em seu sistema de auto-escola adicione a variбvel TestDriving = 1; quando o player estiver fazendo o test...

Qualquer dъvida responde...
pawn Код:
new bool:TestDriving = 0;
pawn Код:
public OnGameModeInit
{
 AutoCar[0] = AddStaticVehicle...
 AutoCar[1] = AddStaticVehicle...
 AutoCar[2] = AddStaticVehicle...
 return 1;
}
pawn Код:
if(IsPlayerInVehicle(playerid,AutoCar[0])||IsPlayerInVehicle(playerid,AutoCar[1])||IsPlayerInVehicle(playerid,AutoCar[2]))
{
if(TestDriving[playerid] != 1)//Sу um exemplo..
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo estб fazendo Test Driving!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
return 1;
}
Reply


Messages In This Thread
[Ajuda] Reservar carros empregos - by Jorge_Hard - 15.02.2011, 21:47
Re: [Ajuda] Reservar carros empregos - by Macintosh - 15.02.2011, 21:51
Re: [Ajuda] Reservar carros empregos - by Jorge_Hard - 15.02.2011, 22:18
Re: [Ajuda] Reservar carros empregos - by Jorge_Hard - 15.02.2011, 22:26
Re: [Ajuda] Reservar carros empregos - by Macintosh - 15.02.2011, 22:31
Re: [Ajuda] Reservar carros empregos - by Jorge_Hard - 15.02.2011, 22:38
Re: [Ajuda] Reservar carros empregos - by Jorge_Hard - 15.02.2011, 22:41
Re: [Ajuda] Reservar carros empregos - by Jorge_Hard - 15.02.2011, 22:45
Re: [Ajuda] Reservar carros empregos - by Macintosh - 15.02.2011, 22:48

Forum Jump:


Users browsing this thread: 1 Guest(s)