Not keeping score :(
#8

Quote:
Originally Posted by Vince
Посмотреть сообщение
Go learn your operators, please. It says: if killerid is not invalid (hence, valid), then add score. This is correct.
Have to learn somewhere.
So you're saying I don't need this?:
Код:
return SendClientMessage(playerid, -1, "You committed sucide");
This is my onplayedeath:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	SetPVarInt(playerid, "Dead", 1);
    SendDeathMessage(killerid, playerid, reason); // Shows the kill in the killfeed
	if(killerid != INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "You committed sucide");
	else
    	{
        	SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
    	}
    return 1;
}
Reply


Messages In This Thread
Not keeping score :( - by Brandondw8 - 14.05.2014, 04:14
Re: Not keeping score :( - by nilanjay - 14.05.2014, 04:38
Re: Not keeping score :( - by Brandondw8 - 14.05.2014, 04:39
Re: Not keeping score :( - by Brandondw8 - 14.05.2014, 04:42
Re: Not keeping score :( - by nilanjay - 14.05.2014, 04:50
Re: Not keeping score :( - by Brandondw8 - 14.05.2014, 04:53
Re: Not keeping score :( - by Vince - 14.05.2014, 08:42
Re: Not keeping score :( - by Brandondw8 - 14.05.2014, 08:46
Re: Not keeping score :( - by Tingesport - 14.05.2014, 09:39
Re: Not keeping score :( - by Brandondw8 - 14.05.2014, 19:02

Forum Jump:


Users browsing this thread: 2 Guest(s)