[FilterScript] [New]Death Matchs System
#15

Quote:
Originally Posted by GameOvr
View Post
Yeah I also feel that this is a better script but I haven't checked yet can you state that these features are in your script or not
Quote:
Originally Posted by Calisthenics
View Post
You constantly change the textdraw to show kills to player like 20+ times a second (in OnPlayerUpdate). Use OnPlayerDeath and change it only when needed:
pawn Code:
// example:
public OnPlayerDeath(playerid, killerid, reason)
{
    if (killerid != INVALID_PLAYER_ID)
    {
        new string[23];
        format(string,sizeof(string),"~G~Kills:    ~w~%d",pInfo[playerid][pKills]);
        TextDrawSetString(Textdraw3,string);
    }
    return 1;
}
2 more things:
• When player dies on their own, killerid is 65535 (INVALID_PLAYER_ID). If you use it in arrays as [killerid], then a run time error 4 will occur and the code execution will stop. You are lucky now because you do not have code after this, but if you did it would bug it. Always check if it is not equal to INVALID_PLAYER_ID and then use it.
• You can use switch instead of if/else if in cases like checking listitem and Skills[killerid].
I will use the update later
thank you
Reply


Messages In This Thread
[New]Death Matchs System - by Vizi10 - 04.07.2018, 17:54
Re: [New]Death Matchs System - by RogueDrifter - 05.07.2018, 05:29
Re: [New]Death Matchs System - by AzaMx - 05.07.2018, 08:30
Re: [New]Death Matchs System - by Vizi10 - 05.07.2018, 08:47
Re: [New]Death Matchs System - by Neom - 05.07.2018, 10:13
Re: [New]Death Matchs System - by GameOvr - 05.07.2018, 17:42
Re: [New]Death Matchs System - by RogueDrifter - 05.07.2018, 17:42
Re: [New]Death Matchs System - by GameOvr - 05.07.2018, 18:01
Re: [New]Death Matchs System - by Vizi10 - 05.07.2018, 18:54
Re: [New]Death Matchs System - by Vizi10 - 05.07.2018, 19:01
Re: [New]Death Matchs System - by SonnyGamer - 05.07.2018, 19:11
Re: [New]Death Matchs System - by Calisthenics - 05.07.2018, 19:14
Re: [New]Death Matchs System - by GameOvr - 06.07.2018, 03:14
Re: [New]Death Matchs System - by Vizi10 - 17.08.2018, 10:16
Re: [New]Death Matchs System - by Vizi10 - 17.08.2018, 10:18
Re: [New]Death Matchs System - by Vizi10 - 17.08.2018, 10:20
Re: [New]Death Matchs System - by UFF - 21.08.2018, 18:40

Forum Jump:


Users browsing this thread: 1 Guest(s)