Unfair death
#1

^^^^^^^^
Reply
#2

By adding an if-statement like the one below.

pawn Код:
if(pInfo[killerid][pAdminDuty] == false)
Reply
#3

Alright, first you would have to have a variable for when the administrator goes on admin duty. Then when a player dies put something similar to this under OnPlayerDeath:
pawn Код:
if(pInfo[killerid][pAduty] == 0)
{
    //Then your code
}
else
{
    SendClientMessage(playerid, -1, "You have been killed unfairly, you have not lossed any money nor score");
    return 1;
}
Reply
#4

Pseudo code:

Quote:

onplayerdeath
{
if(killerid != INVALID_PLAYER_ID)
{
if(IsPlayerAdmin(killerid)) return 1;
else
{
lose money
score--;
ShowDeathMessage
}
}
return 1;
}

Reply
#5

Explain more..
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)