[AJUDA] Pedagio
#5

Quote:
Originally Posted by KinX
Посмотреть сообщение
segue o exemplo

pawn Код:
public OnPlayerUpdate(playerid)
{
   if(IsPlayerInRangeOfPoint(playerid, 1.0, X, Y, Z)) // trocar pelas coordenadas e distancia de um certo pedagio
   {
   SendClientMessage(playerid, -1, "Voce pagou o pedбgio, boa viajem!");
   GivePlayerMoney(playerid, -50);
   TogglePlayerControllable(playerid, 0);
   SetTimer("pagandopedagio", 3000, false);
   }
   return 1;
}

forward pagandopedagio()
public pagandopedagio()
{
TogglePlayerControllable(playerid, 1);
return 1;
}
para colocar em varias coordenadas, faзa o seguinte
nessa linha, vб colocando assim e trocando as coordenadas
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 1.0, X, Y, Z) || (IsPlayerInRangeOfPoint(playerid, 1.0, X, Y, Z) || (IsPlayerInRangeOfPoint(playerid, 1.0, X, Y, Z))
O cara vai pagar bem mais de uma vez. Se ele ficar parado la ele vai ficar pagando 24x por segundo.
Reply


Messages In This Thread
[AJUDA] Pedagio - by PauloMesquita - 04.05.2012, 17:02
Re: [AJUDA] Pedagio - by Don_Speed - 04.05.2012, 17:08
Re: [AJUDA] Pedagio - by PauloMesquita - 04.05.2012, 17:20
Re: [AJUDA] Pedagio - by KinX - 04.05.2012, 17:40
Re: [AJUDA] Pedagio - by Kuddy - 04.05.2012, 18:37
Re: [AJUDA] Pedagio - by KinX - 04.05.2012, 18:43
Re: [AJUDA] Pedagio - by Kan - 04.05.2012, 18:53
Re: [AJUDA] Pedagio - by paulor - 04.05.2012, 19:23
Re: [AJUDA] Pedagio - by PauloMesquita - 04.05.2012, 20:28

Forum Jump:


Users browsing this thread: 1 Guest(s)