[Ajuda]GPS
#5

Quote:
Originally Posted by Felipe_Wesker
Посмотреть сообщение
Da erro, pois jб tenho essa public, uma public gigante aqui

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    new string[128];
    new name[MAX_PLAYER_NAME];
    if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
    {
        TaxiAccepted[playerid] = 999;
        GameTextForPlayer(playerid, "~w~Destino completo", 5000, 1);
        TaxiCallTime[playerid] = 0;
        DisablePlayerCheckpoint(playerid);
    }
    if(ServCopTime[playerid] > 0 && CopAcc[playerid] < 999)
    {
        CopAcc[playerid] = 999;
        GameTextForPlayer(playerid, "~w~Destino completo", 5000, 1);
        ServCopTime[playerid] = 0;
        DisablePlayerCheckpoint(playerid);
    }
    if(GPSPos[playerid] == 1)
    {
        GPSPos[playerid] = 0;
        DisablePlayerCheckpoint(playerid);
    }
    else if(PlayerToPoint(5.0,playerid,218.2851,-98.5317,1005.2578))
    {
          if(PlayerInfo[playerid][pMember] == 0)
          {
              ShowMenuForPlayer(Zip, playerid);
              SetPlayerPos(playerid, 218.2851,-98.5317,1005.2578);
              SetPlayerFacingAngle(playerid, 271.0125);
              TogglePlayerControllable(playerid, false);
              SetPlayerCameraPos(playerid, 216.5639,-99.6462,1005.2578);
              SetPlayerCameraLookAt(playerid, 218.6617,-98.5263,1005.2578);
              LimparChat(playerid);
              DisablePlayerCheckpoint(playerid);
          }
          if(PlayerInfo[playerid][pMember] == 23)
          {
              ShowMenuForPlayer(Zip, playerid);
              SetPlayerPos(playerid, 218.2851,-98.5317,1005.2578);
              SetPlayerFacingAngle(playerid, 271.0125);
              TogglePlayerControllable(playerid, false);
              SetPlayerCameraPos(playerid, 216.5639,-99.6462,1005.2578);
              SetPlayerCameraLookAt(playerid, 218.6617,-98.5263,1005.2578);
              LimparChat(playerid);
              DisablePlayerCheckpoint(playerid);
          }
          if(IsACop(playerid) && OnDuty[playerid] == 0)
          {
...
EDIT: Nao tem como por alguma funзгo no comando mesmo para remover o cp qndo o player chegar? pq dai seria mais rapido e nao daria bugs
Sу adicione dentro dessa public :

pawn Код:
DisablePlayerCheckpoint(playerid);
Como o Vini postou acima
Reply


Messages In This Thread
[Ajuda]GPS - by Felipe_Wesker - 29.03.2012, 22:49
Re: [Ajuda]GPS - by ViniBorn - 29.03.2012, 22:53
Re: [Ajuda]GPS - by Felipe_Wesker - 29.03.2012, 22:55
Re: [Ajuda]GPS - by Felipe_Wesker - 29.03.2012, 23:20
Re: [Ajuda]GPS - by kratty - 29.03.2012, 23:24
Re: [Ajuda]GPS - by Felipe_Wesker - 29.03.2012, 23:29
Re: [Ajuda]GPS - by kratty - 29.03.2012, 23:38
Re: [Ajuda]GPS - by ViniBorn - 30.03.2012, 00:05
Re: [Ajuda]GPS - by kratty - 30.03.2012, 00:09
Re: [Ajuda]GPS - by Felipe_Wesker - 30.03.2012, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)