Updating score.
#1

hey i was wondering, How come in-game score isnt updating? i made it so your score goes off your total kills saved with Ladmin.

but in-game som1 will kill som1 and score wont go up. it only refreshes after they relog.. a little help please.
Reply
#2

use this

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
Reply
#3

the problem is ladmin isnt updating shit.. so i mite just reinstall
Reply
#4

Quote:
Originally Posted by © HungryPinkPig ©
hey i was wondering, How come in-game score isnt updating? i made it so your score goes off your total kills saved with Ladmin.

but in-game som1 will kill som1 and score wont go up. it only refreshes after they relog.. a little help please.
Just make the score go up when they kill someone, don't set it on OnPlayerConnect using a variable.



Quote:
Originally Posted by ExoSanty
use this

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
Reply
#5

LAdmin doesn't have feature to load previous scores from kills, you can always add it, when they login, get their score from their file, then set it using SetPlayerScore.
Reply
#6

I know it is old topic can anyone told me what i need do to score load?
Reply
#7

Quote:
Originally Posted by [FG
otto ]
I know it is old topic can anyone told me what i need do to score load?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)