i need help!
#1

I Need a system in which when i kill any Player i should get 1 score (without getting cash)
(Also if i do /kill i won't get score)
I will appreciate if someone will help me
Reply
#2

Put this into OnPlayerDeath.
PHP код:
if(killerid != INVALID_PLAYER_ID)
{
    
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);

Reply
#3

I dont have OnPlayerDeath,
How does it looks like with the code?
Reply
#4

Oh nvm,I fixed it,
Thanks for your help!
Reply
#5

try this

Код:
public OnPlayerDeath(killerid,playerid,reason)
{
setplayerscore(killerid,  GetPlayerScore(killerid)+1)// (killerid)1) should work too i think
return 1;
}
Reply
#6

@ahameed4755:
If you use your code, the server will crash if you do suicide (INVALID_PLAYER_ID => 65535 => MAX_PLAYERS => 499 (0-499)).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)