Score shown in TAB key ?
#1

Hi , i want whene a player click on 'TAB' key , must see the score .
because 1kill=1score . thank you .
Reply
#2

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
Reply
#3

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;
}
Reply
#4

are you sur that must be in onplayerdeath ? because not working
Reply
#5

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?
Reply
#6

no , but maybe this error is due to the password , i don't know why my script doesn't save the passwords....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)