SA-MP Forums Archive
[GameMode] San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects] - 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: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects] (/showthread.php?tid=467760)



San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects] - MarkzD - 04.10.2013

SA-TDM 0.2
Author: MarkzD
Gamemode: SA-TDM
Download: Solidfiles
Features: map, login/register system, admin system, afk system, shop system, many cars.
Admin cmd's:
/kick
/ban
/freeze
/unfreeze
/wkick
/broadcast
/gametext
/setadmin
/setvip
/givemoney
/givegun
/an

Player cmd's:
/afk
/cmd
/kill
/cc
/ct
/report
/stats

Img:Imgur
War territory:

All in all it's just basic for mode, so.


Re: San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects] - DanishHaq - 04.10.2013

Lol?

pawn Код:
public OnPlayerConnect(playerid)
{
    if(Player[playerid][Banned] == 1)
    {
    SendClientMessage(playerid,0x3a3a3aFF,"You still banned!");
    Kick(playerid);
    }
Basically, without loading anything, and using any variables yet, as soon as the player connects, where's it gonna check if it's banned from? The bans save on the ID or something? That won't work, actually. So the ban system is broken. It's not as simple as that at all. You need to parse the files, aka load them, especially the banned variable first, and if they are banned, then you kick them. At this rate it'll kick the player who got banned last on that ID, which won't be such a success for your slots.

Also, wherever you've used just the Kick function, there are some issues with that, here:

Quote:

Important Note: As of SA-MP 0.3x, any action taken before Kick() (such as sending a message with SendClientMessage) will not work. A timer must be used to delay the kick. https://sampwiki.blast.hk/wiki/Kick
Those are just 2 of the problems I found.. God knows how many more there could be that could affect the gameplay.

There aren't very many commands for players either, most of them are allocated for admins. Anyhow, good job for your work and effort.


AW: Re: San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects] - Forbidden - 04.10.2013

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
Lol?

pawn Код:
public OnPlayerConnect(playerid)
{
    if(Player[playerid][Banned] == 1)
    {
    SendClientMessage(playerid,0x3a3a3aFF,"You still banned!");
    Kick(playerid);
    }
Basically, without loading anything, and using any variables yet, as soon as the player connects, where's it gonna check if it's banned from? The bans save on the ID or something? That won't work, actually. So the ban system is broken. It's not as simple as that at all. You need to parse the files, aka load them, especially the banned variable first, and if they are banned, then you kick them. At this rate it'll kick the player who got banned last on that ID, which won't be such a success for your slots.

Also, wherever you've used just the Kick function, there are some issues with that, here:



Those are just 2 of the problems I found.. God knows how many more there could be that could affect the gameplay.

There aren't very many commands for players either, most of them are allocated for admins. Anyhow, good job for your work and effort.
Quote:

All in all it's just basic for mode, so.

Maybe a reason, why....


Re: San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects] - mini_mi - 05.10.2013

Nice basic script. good for newbies


Re: AW: Re: San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects] - DanishHaq - 05.10.2013

Quote:
Originally Posted by Forbidden
Посмотреть сообщение
Maybe a reason, why....
Yes a and just because it's a simple GM doesn't mean you can't make improvements. All I was trying to do is increase your scripting knowledge for the future. And if you gave me that -rep, that was uncalled for.


Re: San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects] - MarkzD - 07.10.2013

bump


Re: San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects] - MarkzD - 23.10.2013

New update come's.

Fix many bags, add new cmd's, add new terr


Re: San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects] - Naruto_Emilio - 25.10.2013

"Bags" ftw, augh worst GM I ever seen on my life


Re : San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects] - samp_boy - 25.10.2013

Simple
Good jod


Re: San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects] - Jankingston - 25.10.2013

nyc... +rep