Give Score
#1

Heey guys,
How can i give a player score by +1 and not with setting it.
Example:If the player kills someone he gets 1 score +.
Thanks Admigo.
Reply
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    // Adds 1 to this killer's score.
    if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
    return 1;
}
Reply
#3

Isn't that already default in a server?
Oh sorry. Diddn't read..
Reply
#4

Nope, you have to set it.
Reply
#5

Oops, forgot because I already have that setup, I'm kind of used to it that it's like an invisible part of the script if you know what I mean.
Reply
#6

Thanks guys
Reply
#7

Quote:
Originally Posted by dr.pepper
Посмотреть сообщение
Oops, forgot because I already have that setup, I'm kind of used to it that it's like an invisible part of the script if you know what I mean.
I get you buddy

Quote:
Originally Posted by admigo
Посмотреть сообщение
Thanks guys
No problem matey
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)