SA-MP Forums Archive
[FilterScript] [New]Death Matchs System - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [New]Death Matchs System (/showthread.php?tid=655993)



[New]Death Matchs System - xRadical3 - 04.07.2018

Death Matchs FilterScript

Features: Needs: Commands:
Code:
/DeathMatchs (/DM) - Join The DeathMatchs   
/Exit - Exit From DeathMatchs     
/gExit - Exit From GunGame 
/LockDm - Limit a Player From DeathMatchs 
/UnLockdm - Remove Limit a Player      
/SpecDm - Show DeathMatchs
/Getallplayerstodm (/gatd) - Get All Players To DeathMatchs
Type .chat For Chat In DM And Send Message For Players In Dm! Example: .Hello!
ScreenShots:
DeathMatchs Dialog:

Join The DeathMatch:

Dialog SpecDM:

Dialog GetAllPlayersToDm:



Downloads Link:
MediaFire - Download
PasteBin - source code


Re: [New]Death Matchs System - RogueDrifter - 05.07.2018

Pastebin/github?


Re: [New]Death Matchs System - AzaMx - 05.07.2018

Pastebin please


Re: [New]Death Matchs System - xRadical3 - 05.07.2018

Quote:
Originally Posted by RogueDrifter
View Post
Pastebin/github?
Quote:
Originally Posted by AzaMx
View Post
Pastebin Please
Click Here!


Re: [New]Death Matchs System - Neom - 05.07.2018

Epic +REP


Re: [New]Death Matchs System - GameOvr - 05.07.2018

Wow nice one of the best death math filter scripts +rep from me
Question:can I move to another DM when I'm already in a DM if it is plz change that so players can death evade easily anyway goodjob


Re: [New]Death Matchs System - RogueDrifter - 05.07.2018

Quote:
Originally Posted by Neom
View Post
Epic +REP
Quote:
Originally Posted by GameOvr
View Post
Wow nice one of the best death math filter scripts +rep from me
Question:can I move to another DM when I'm already in a DM if it is plz change that so players can death evade easily anyway goodjob
No it's not epic nor is it nice at all.

Sorry but this is horrible for multiple reasons starting with the fact that the creator didn't indent the code right (tabsize is 4 not -1)

And many more which i can't be bothered to state anymore.


Re: [New]Death Matchs System - GameOvr - 05.07.2018

Rouge so can you make a better DM system plz with these features
Commands:dm -list of DMS (dialog mode)
dm1-alternativecommand to enter dm
dm2-alternativecommand to enter DM
Plz add even 6 or 5 DMS
Kill streak for DM
SetPlayerHealth (killerid, 100) feature
Random respawns
Player can't enter another DM while he is in a DM
/exit for leave (when player leaves he must spawn at the place that he entered the DM)

Thanks if you made a fs like this plz try


Re: [New]Death Matchs System - xRadical3 - 05.07.2018

Quote:
Originally Posted by GameOvr
View Post
Wow nice one of the best death math filter scripts +rep from me
Question:can I move to another DM when I'm already in a DM if it is plz change that so players can death evade easily anyway goodjob
Thank You


Re: [New]Death Matchs System - xRadical3 - 05.07.2018

Quote:
Originally Posted by RogueDrifter
View Post
No it's not epic nor is it nice at all.

Sorry but this is horrible for multiple reasons starting with the fact that the creator didn't indent the code right (tabsize is 4 not -1)

And many more which i can't be bothered to state anymore.
In my opinion, I've written it is great and there is no problem or bug in my script.
You do not use this my script if you think it's very bad


Re: [New]Death Matchs System - SonnyGamer - 05.07.2018

Quote:
Originally Posted by Vizi10
View Post
In my opinion, I've written it is great
And in my opinion you can't rate your own thread

I haven't tested your system yet but I appreciate effort you've done


Re: [New]Death Matchs System - Calisthenics - 05.07.2018

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].


Re: [New]Death Matchs System - GameOvr - 06.07.2018

Quote:
Originally Posted by Vizi10
View Post
In my opinion, I've written it is great and there is no problem or bug in my script.
You do not use this my script if you think it's very bad
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 GameOvr
View Post
Rouge so can you make a better DM system plz with these features
Commands:dm -list of DMS (dialog mode)
dm1-alternativecommand to enter dm
dm2-alternativecommand to enter DM
Plz add even 6 or 5 DMS
Kill streak for DM
SetPlayerHealth (killerid, 100) feature
Random respawns
Player can't enter another DM while he is in a DM
/exit for leave (when player leaves he must spawn at the place that he entered the DM)

Thanks if you made a fs like this plz try



Re: [New]Death Matchs System - xRadical3 - 17.08.2018

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
Yes my script have this features


Re: [New]Death Matchs System - xRadical3 - 17.08.2018

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


Re: [New]Death Matchs System - xRadical3 - 17.08.2018

Quote:
Originally Posted by SonnyGamer
View Post
And in my opinion you can't rate your own thread

I haven't tested your system yet but I appreciate effort you've done
thank you


Re: [New]Death Matchs System - UFF - 21.08.2018

Good work on the project.