[Ajuda] Checkpoint nгo funciona
#8

pawn Код:
public OnPlayerEnterCheckpoint(playerid) // Ao Chegar no Checkpoint
{
 EstouNasCCTV[playerid] = 0;
 PlayerInfo[playerid][pBebidaAlcolica] = 0;
 if(PlayerInfo[playerid][pFaction] == 1){
 VagosOnline += 1;
 }
 if(PlayerInfo[playerid][pFaction] == 2)
 {
 AzOnline += 1;
 }
 if(gPlayerLogged[playerid])
 {
 SetPlayerSpawn(playerid);
 SetPlayerColor(playerid,COLOR_CIVILIAN);
 SetCameraBehindPlayer(playerid);
 }
 if (PlayerInfo[playerid][pMissaoNewbie] == 1)
 {
 SetPlayerCheckpoint(playerid, 1354.7950439453, 371.38482666016, 19.30509185791, 3.0); // checkpoint no limpa ruas
 SendClientMessage(playerid, COLOR_WHITE, "Йs novo neste vale, combinaste encontrar-te com um amigo que trabalha a limpar ruas, vai lб ter!");
 }
 if (PlayerInfo[playerid][pMissaoNewbie] == 2)
 {
 SetPlayerCheckpoint(playerid, Checkpointmiss, 3.0);
 SendClientMessage(playerid, COLOR_WHITE, "Durante o transporte para a prisгo de San Fierro o teu aviгo despenhou-se, o guarda");
 SendClientMessage(playerid, COLOR_WHITE, "e o piloto que seguiam contigo nao subreviveram... dirige-te ao hospital para tratares os teus ferimentos.");
 PlayerInfo[playerid][pcoldre1] = 1;
 PlayerActionMessage(playerid,15.0,"olha para os restos mortais do Policia e do Piloto.");
 PlayerActionMessage(playerid,15.0,"agaixa-se e saca o coldre da perna do Policia.");
 PlayerActionMessage(playerid,15.0,"prende o coldre na cintura.");    SendClientMessage(playerid, COLOR_RED, "Tens agora um coldre, onde podes guardar uma arma ((/ajudaarma)).");
 }
 if (PlayerInfo[playerid][pMissaoNewbie] == 3)
 {
 SetPlayerCheckpoint(playerid, 1235.2584, 237.2431, 19.5547, 7.0); // entrada da universidade
 SendClientMessage(playerid, COLOR_WHITE, "Acabaste o teu curso Universitбrio, vai agora а Universidade buscar o teu diploma.");
 }
 if (PlayerInfo[playerid][pGravementeFerido] == 1)
 {
 SetPlayerHealth(playerid, 70);
 SendClientMessage(playerid, COLOR_RED, "Estбs gravemente ferido, se ninguem te socorrer irбs entrar em coma.");
 TogglePlayerControllable(playerid, 0);
 SetTimer("tempovida",60000,false);//
 PlayerActionMessage(playerid,15.0,"desmaia e cai no chгo.");
 ApplyAnimation(playerid, "PED","KO_skid_front",4.1,0,1,1,1,0);
 ApplyAnimation(playerid, "CRACK","crckidle2",4.1,0,1,1,1,0);
 SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
 SetPlayerPos(playerid,PlayerInfo[playerid][pEstavaEmX],PlayerInfo[playerid][pEstavaEmY],PlayerInfo[playerid][pEstavaEmZ]);
 SetPlayerInterior(playerid,PlayerInfo[playerid][pEstavaEmInt]);
 SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pEstavaEmW]);            //
 SetPlayerPos(playerid, EstavaEm[playerid][0],EstavaEm[playerid][1],EstavaEm[playerid][2]);
 }            else            {
 if (PlayerInfo[playerid][pGravementeFerido] == 0)
 {
 if (JogadorEsteveComa == 1)
 {
 SetPlayerPos(playerid, 1242.6008300781,333.11175537109,19.515342712402); // coordenadas da entrada do hospital
 PlayerInfo[playerid][pGravementeFerido] = 0;
 KillTimer(playerid, "PlayerAFicarEmComa");
 SendClientMessage(playerid, COLOR_GREEN, "[HOSPITAL:] Estiveste algum tempo em coma, mas jб acordaste. Os Mйdicos tomaram conta de ti, por tanto tiveste de pagar 800$.");
 SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
 GivePlayerCash(playerid, -800);
 DynamicFactions[3][fBank] += 800;
 SetPlayerInterior(playerid,0);
 SetPlayerVirtualWorld(playerid,0);
 }                else                {
 if (JogadorEsteveComa == 0)
 {
 SetPlayerSpawn(playerid);
 SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
 }
 }
 }
  }
 if(PlayerInfo[playerid][pmontada] == 1)
 {
 if(PlayerInfo[playerid][pGravementeFerido] == 0)
 {
 if(PlayerInfo[playerid][pJailed] == 0)
 {
 SetPlayerPos(playerid,PlayerInfo[playerid][ptCrashX],PlayerInfo[playerid][ptCrashY],PlayerInfo[playerid][ptCrashZ]);
 DestroyObject(tendam[playerid]);
 tendam[playerid] = CreateObject(3243,PlayerInfo[playerid][ptCrashX]+2,PlayerInfo[playerid][ptCrashY],PlayerInfo[playerid][ptCrashZ]-2,0.00000000,0.00000000,0.00000000);
 PlayerActionMessage(playerid,15.0,"estica-se com uma dor de costas.");
 return 1;
 }
 }
 }
 if(PlayerInfo[playerid][pFaction] != 255)
 {
 if(DynamicFactions[PlayerInfo[playerid][pFaction]][fUseSkins])
 {
 SetPlayerToFactionSkin(playerid);
 }
 }        else        {
 SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
 }
 }
    DisablePlayerCheckpoint(playerid); // Destruirб ao Ficar em Cima Dele.
    return true;
}
ve se isso funfa aqui funfou .FLW
Reply


Messages In This Thread
[Ajuda] Checkpoint nгo funciona - by Slayer1 - 09.10.2011, 21:52
Re: [Ajuda] Checkpoint nгo funciona - by Hardware - 09.10.2011, 21:54
Re: [Ajuda] Checkpoint nгo funciona - by Dolby - 09.10.2011, 21:55
Re: [Ajuda] Checkpoint nгo funciona - by steki. - 09.10.2011, 21:55
Re: [Ajuda] Checkpoint nгo funciona - by Slayer1 - 09.10.2011, 21:58
Re: [Ajuda] Checkpoint nгo funciona - by steki. - 09.10.2011, 22:01
Re: [Ajuda] Checkpoint nгo funciona - by Slayer1 - 09.10.2011, 22:05
Re: [Ajuda] Checkpoint nгo funciona - by MatriXBorn - 09.10.2011, 22:05
Re: [Ajuda] Checkpoint nгo funciona - by Hardware - 09.10.2011, 22:07

Forum Jump:


Users browsing this thread: 1 Guest(s)