SetPlayerScore [Rep +1]
#1

If a player uses cmd : /kill then he's score will be -1 from score

Example : My score is 50 and I used cmd : /kill then My score wil be set to 49

Ofc 50-1 = 49

Can somone script it for me ?? plz plz plz
Reply
#2

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

Put this in your command:

pawn Код:
SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
This litterally took me 2 seconds to find and copy/paste.

Learn how to search before asking people to script for you.

EDIT: ^^ beat me to it.
Reply
#4

I made that code on the moment, I did not copy/paste it, okay?
Reply
#5

Whoo

Tnx for quick answers both of you

you 2 got REP +100 - 99

Reply
#6

Never said you didn't copy/pasted it. And i guess thanks for the rep. But seriously, search before making a thread.
Reply
#7

its just thinking..
How hard is it to think that if B = A -1. you must set B to A - 1?
Reply
#8

Quote:
Originally Posted by milanosie
Посмотреть сообщение
its just thinking..
How hard is it to think that if B = A -1. you must set B to A - 1?
lol thats rtrue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)