Adding score to killer and deducting score to killee
#4

Quote:
Originally Posted by LarzI
View Post
Why are you declaring new variables? This is a waste of speed and memory.

pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, weapon);
    GivePlayerScore(killerid, GetPlayerScore(killerid)+1);
    GivePlayerScore(playerid, GetPlayerScore(playerid)-1);
    return 1;
}
I was declaring 2 new variables as the way LeeXian99 had his GivePlayerScore setup as. Just to make it so he could use it like that without having to use the playerid, and killerid.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)