how can i do this? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how can i do this? (
/showthread.php?tid=223382)
how can i do this? -
Medal Of Honor team - 09.02.2011
How can i make a thing when a player kills a player his exp will be +1 and when the player die his exp will -1
Re: how can i do this? -
hadzx - 09.02.2011
exp do you mean score?
if you mean score its this
Код:
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
gives the killer +1 score
Код:
SetPlayerScore(killerid,GetPlayerScore(playerid)-1);
gives the person who died -1 score
overall
Код:
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
SetPlayerScore(killerid,GetPlayerScore(playerid)+1);
under onplayerdeath
Re: how can i do this? -
Medal Of Honor team - 09.02.2011
yup sort of something like that
Re: how can i do this? -
hadzx - 09.02.2011
Quote:
Originally Posted by Medal Of Honor team
yup sort of something like that
|
their you go edited my 1st post
Re: how can i do this? -
HyperZ - 09.02.2011
@hadzx Next time use [pawn] [ /pawn]
Re: how can i do this? -
Medal Of Honor team - 09.02.2011
not works. I want to do in textdraw
Textdraw2 = TextDrawCreate(562.000000, 313.000000, "%d");
Re: how can i do this? -
hadzx - 09.02.2011
Quote:
Originally Posted by Medal Of Honor team
not works. I want to do in textdraw
Textdraw2 = TextDrawCreate(562.000000, 313.000000, "%d");
|
look on wiki into textdrawupdate
Re: how can i do this? -
Medal Of Honor team - 09.02.2011
there is not TextDrawUpdate in sa-mp.wiki
EDIT: I have created but it just rises not lower's
Re: how can i do this? -
HyperZ - 09.02.2011
https://sampwiki.blast.hk/wiki/TextDrawSetString
Re: how can i do this? -
Medal Of Honor team - 09.02.2011
i have see it. But all it shows is %d