Score shown in TAB key ? - 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)
+--- Thread: Score shown in TAB key ? (
/showthread.php?tid=316202)
Score shown in TAB key ? -
ServerScripter - 05.02.2012
Hi , i want whene a player click on 'TAB' key , must see the score .
because 1kill=1score . thank you .
Re: Score shown in TAB key ? -
[ABK]Antonio - 05.02.2012
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
//somewhere in here you would put
SetPlayerScore(killerid, Info[killerid][Kills]) //using your own variable for kills
}
This forum requires that you wait 120 seconds between posts. Please try again in 17 seconds. <--- so lame lol
Re: Score shown in TAB key ? -
Tanush123 - 05.02.2012
Quote:
Originally Posted by [ABK]Antonio
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { //somewhere in here you would put SetPlayerScore(killerid, Info[killerid][Kills]) //using your own variable for kills }
This forum requires that you wait 120 seconds between posts. Please try again in 17 seconds. <--- so lame lol
|
Well you can also do this too
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
Kill[killerid] ++;
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
return 1;
}
Re: Score shown in TAB key ? -
ServerScripter - 05.02.2012
are you sur that must be in onplayerdeath ? because not working
Re: Score shown in TAB key ? -
[ABK]Antonio - 05.02.2012
Quote:
Originally Posted by Tanush123
Well you can also do this too
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { Kill[killerid] ++; SetPlayerScore(killerid,GetPlayerScore(killerid)+1); return 1; }
|
Yeah you can, either way you're doing basically the same thing lol
Quote:
Originally Posted by ServerScripter
are you sur that must be in onplayerdeath ? because not working 
|
It doesn't HAVE to be on OnPlayerDeath, it's just an optimal location for it, does it give you any errors or anything?
Re: Score shown in TAB key ? -
ServerScripter - 05.02.2012
no , but maybe this error is due to the password , i don't know why my script doesn't save the passwords....