30.03.2013, 12:21
Quote:
man i provided the code above but that dont worked read the code in my previous statement
|
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
gPlayerInfo[playerid][Deaths]++;
if(IsPlayerConnected(killerid))
{
gPlayerInfo[killerid][Kills]++;
}
if(gPlayerInfo[killerid][Level] >= 1)
{
new score;
score = GetPlayerScore(killerid);
SetPlayerScore(killerid, score+5);
}
return 1;
}
pawn Код:
if(gPlayerInfo[killerid][Level] >= 1)
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
gPlayerInfo[playerid][Deaths]++;
gPlayerInfo[killerid][Kills]++;
if(gPlayerInfo[killerid][Level] >= 1)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+5); // For admin score value.
}
}
return 1;
}