SA-MP Forums Archive
[DUVIDA] Ao player morrer... - 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: [DUVIDA] Ao player morrer... (/showthread.php?tid=180336)



[DUVIDA] Ao player morrer... - PawninG - 01.10.2010

Queria por uma coisa mais ou menos assim, ao player morrer, o player que matou ele, receber todo o score dele, mas nгo sei por onde comeзar


Re: [DUVIDA] Ao player morrer... - zSuYaNw - 01.10.2010

pawn Code:
SetPlayerScore(killerid,GetPlayerScore(playerid));
This forum requires that you wait 120 seconds between posts. Please try again in 22 seconds.


Re: [DUVIDA] Ao player morrer... - PawninG - 01.10.2010

Quote:
Originally Posted by [Full]Garfield[XDB]
View Post
pawn Code:
SetPlayerScore(killerid,GetPlayerScore(playerid));
This forum requires that you wait 120 seconds between posts. Please try again in 22 seconds.
Nгo funcionou, quando um player mata o outro player, o player que matou, nгo ganha o score que o player que morreu tinha


Re: [DUVIDA] Ao player morrer... - zSuYaNw - 01.10.2010

botasse aonde ?


Re: [DUVIDA] Ao player morrer... - PawninG - 01.10.2010

Quote:
Originally Posted by [Full]Garfield[XDB]
View Post
botasse aonde ?
OnPlayerDeath..


Re: [DUVIDA] Ao player morrer... - pedro xD~ - 01.10.2010

nao й mais facil
bota pra quando mata 1 ganha 1 score?


Re: [DUVIDA] Ao player morrer... - PawninG - 01.10.2010

Quote:
Originally Posted by pedro xD~
View Post
nao й mais facil
bota pra quando mata 1 ganha 1 score?
Eu queria que quando matasse, o que matasse ganhasse o score do que morreu..


Re: [DUVIDA] Ao player morrer... - Canabis - 01.10.2010

Quote:
Originally Posted by PawninG
View Post
Eu queria que quando matasse, o que matasse ganhasse o score do que morreu..
pawn Code:
SetPlayerScore(killerid,GetPlayerScore(playerid)+GetPlayerScore(killerid));