[GameMode] San Andreas Team Death Match - v.0.2[zcmd/sscanf/objects]
#1

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.
Reply
#2

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.
Reply
#3

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....
Reply
#4

Nice basic script. good for newbies
Reply
#5

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.
Reply
#6

bump
Reply
#7

New update come's.

Fix many bags, add new cmd's, add new terr
Reply
#8

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

Simple
Good jod
Reply
#10

nyc... +rep
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)