SA-MP Forums Archive
[Ajuda]Como faiz galera - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda]Como faiz galera (/showthread.php?tid=167091)



[Ajuda]Como faiz galera - Link_ - 11.08.2010

galera como faiz ? tipo quando vc me mata eu fik olhando pra vc ai aparece uma mesagem assim olha quem te mato alguem ai sab fazer??


Re: [Ajuda]Como faiz galera - Caio_Cartaxo - 11.08.2010

no public OnPlayerDeath(playerid, killerid, reason)
Bota:

PlayerSpectatePlayer(playerid, killerid);


Re: [Ajuda]Como faiz galera - Link_ - 11.08.2010

mais como eu defino o tempo?? olha se e isso msm
pawn Код:
TogglePlayerSpectating(playerid, true);
PlayerSpectatePlayer(playerid, killerid, 1);
olhaae[playerid] = 1;
GameTextForPlayer(playerid, "~r~Aprende a jogar NOOBS!", 7000, 3);
  SetTimerEx("OlhaAeQuemTeMatou", 7000, false, "d", playerid);
pawn Код:
public OlhaAeQuemTeMatou(playerid)
{
    TogglePlayerSpectating(playerid, false);
    olhaae[playerid] = 0;
    return 1;
}



Re: [Ajuda]Como faiz galera - Caio_Cartaxo - 11.08.2010

Ta correto ai, vocк botou para 7 segundos ele parar de ver o cara (:


Re: [Ajuda]Como faiz galera - Falcon. - 11.08.2010

pawn Код:
SetTimerEx("OlhaAeQuemTeMatou", 7000, false, "d", playerid);
No 7000 que vocк definiu o tempo que ele ira ficar ohando...caso for colocar uns 9 segundos coloca 9000..e assim vai =D


Re: [Ajuda]Como faiz galera - SlashPT - 11.08.2010

ou entao faz Numero que voce quer * 1000

tipo

31 segundos

pawn Код:
31*1000