SA-MP Forums Archive
[GameMode] Swat New Generation TDM [First Release] - 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] Swat New Generation TDM [First Release] (/showthread.php?tid=327584)

Pages: 1 2


Swat New Generation TDM [First Release] - ServerScripter - 21.03.2012

Introduction :


This Gamemod is a Short edit of New Generation TDM , so , i was bored , and tryed to add more Features for the GM , it is a basic one , and easy to use for beginners .
New Features :


- Map Change System
- There are two maps
- add more commands for Vips(/vmob /vrmob /vbox /vrbox /vip /vskin [skinid] /vshop)
- add /ask command for players
- a vip(premium or gold or silver) win more than normal player at killing
- /slap & /weather & /removescore & /removemoney & /(un)freeze for admins
- /gethere and /goto commands (for admins)
- AFK system (/afk & /back)
- New ban system( /ban to ban an account /permaban to ban a player for ever)
- Saving how many player is kicked/banned (in the database of the player)
- a short /stats command
- and more...

How to use ? :

to check if a player is vip :
Vip = 0 (normal player)
Vip = 1 (Silver Vip)
Vip = 2 (Gold Vip)
Vip = 3 (Premium Vip)

pawn Код:
if (Vip[playerid] >= 1) // if the vip lever is 1 or more than it(silver or than)
{
//do stuff here
}
to check if a player is an admin :
pawn Код:
if (AdminLevel[playerid] >= 1) // if the admin lever is 1 or more than it
{
//do stuff here
}
How to get the Player Name ?
Simple
pawn Код:
new string[200];
format(string, sizeof(string), " **{F5DEB3}your name of the player is {00CCFF} %s !! , PlayerName(playerid));
SendClientMessage(playerid,COLOR_MODRA, string);

CREDITS:

-Credits to SAMP Team
-Credits to Riso135 for the GM
-Credits to Kitten and Toreno for the Map Change
-Credits to Babul for all help he gave me
-Credits to all Scripters who helpped me (sorry i forget your names )
-Credits to ****** for sscanf and to DarkBlue

DOWNLOAD:

PasteBin: http://pastebin.com/jLXXS6ta
PasteBin(Fixed Warnings): pastebin.com/e2ps7ZGk
SolideFiles: http://solidfiles.com/d/3366176fa1/


Re: Swat New Generation TDM [First Release] - Sami Ham - 21.03.2012

nice gamemode 8/10 keep up :P


Re: Swat New Generation TDM [First Release] - ServerScripter - 21.03.2012

thank you a lot !


Re: Swat New Generation TDM [First Release] - samp4you - 21.03.2012

Very nice and lovely game mode ! keep up and +1 for your own effort !


Re: Swat New Generation TDM [First Release] - ServerScripter - 21.03.2012

thank you i hope you like it


Re: Swat New Generation TDM [First Release] - [EuG]ZeRoGoD - 21.03.2012

C:\Users\advent\Desktop\test\gamemodes\SNG.pwn(136 4) : warning 217: loose indentation
C:\Users\advent\Desktop\test\gamemodes\SNG.pwn(211 1) : warning 217: loose indentation
C:\Users\advent\Desktop\test\gamemodes\SNG.pwn(211 6) : warning 217: loose indentation
C:\Users\advent\Desktop\test\gamemodes\SNG.pwn(218 3) : warning 217: loose indentation
C:\Users\advent\Desktop\test\gamemodes\SNG.pwn(218 6) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Warnings.


Re: Swat New Generation TDM [First Release] - petrolhead - 22.03.2012

Quote:
Originally Posted by [EuG]ZeRoGoD
Посмотреть сообщение
C:\Users\advent\Desktop\test\gamemodes\SNG.pwn(136 4) : warning 217: loose indentation
C:\Users\advent\Desktop\test\gamemodes\SNG.pwn(211 1) : warning 217: loose indentation
C:\Users\advent\Desktop\test\gamemodes\SNG.pwn(211 6) : warning 217: loose indentation
C:\Users\advent\Desktop\test\gamemodes\SNG.pwn(218 3) : warning 217: loose indentation
C:\Users\advent\Desktop\test\gamemodes\SNG.pwn(218 6) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
show the lines.


Re: Swat New Generation TDM [First Release] - Kitten - 22.03.2012

Quote:
Originally Posted by petrolhead
Посмотреть сообщение
show the lines.
Lol please can you read the warning, no need to show the lines.


OT: Nice gamemode, thanks for including me in the credits.


EDIT: fixed the gamemode for you, added

pawn Код:
main
{
}
http://pastebin.com/MjT3ayrL


Re: Swat New Generation TDM [First Release] - [EuG]ZeRoGoD - 22.03.2012

Quote:
Originally Posted by Kitten
Посмотреть сообщение
Lol please can you read the warning, no need to show the lines.


OT: Nice gamemode, thanks for including me in the credits.


EDIT: fixed the gamemode for you, added

pawn Код:
main
{
}
http://pastebin.com/MjT3ayrL
lol you have made it from warnings to 1 error :P

C:\Users\advent\Desktop\LAS VENTURES NIGHT DRIFT\gamemodes\SNG.pwn(160) : error 010: invalid function or declaration
C:\Users\advent\Desktop\LAS VENTURES NIGHT DRIFT\gamemodes\SNG.pwn(1367) : warning 217: loose indentation
C:\Users\advent\Desktop\LAS VENTURES NIGHT DRIFT\gamemodes\SNG.pwn(2112) : warning 217: loose indentation
C:\Users\advent\Desktop\LAS VENTURES NIGHT DRIFT\gamemodes\SNG.pwn(2117) : warning 217: loose indentation
C:\Users\advent\Desktop\LAS VENTURES NIGHT DRIFT\gamemodes\SNG.pwn(2184) : warning 217: loose indentation
C:\Users\advent\Desktop\LAS VENTURES NIGHT DRIFT\gamemodes\SNG.pwn(2187) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

no problem tho


Re: Swat New Generation TDM [First Release] - [UE]Milan - 22.03.2012

Looks good. going to try it.


Re: Swat New Generation TDM [First Release] - ServerScripter - 22.03.2012

Quote:
Originally Posted by Kitten
View Post
Lol please can you read the warning, no need to show the lines.


OT: Nice gamemode, thanks for including me in the credits.


EDIT: fixed the gamemode for you, added

pawn Code:
main
{
}
http://pastebin.com/MjT3ayrL
No Problem you helped me a lot man , i hope you like the GM and thanks for the fixing link


Re: Swat New Generation TDM [First Release] - Mark™ - 22.03.2012

Quote:
Originally Posted by ServerScripter
View Post
No Problem you helped me a lot man , i hope you like the GM and thanks for the fixing link
Its not fixed ! cant you see the reply #10 ? Its now giving errors


Re: Swat New Generation TDM [First Release] - ServerScripter - 22.03.2012

i know , i said thanks for the effort he did (trying to fix the link)

EDIT : so the warnings are due the loose inendation , (you can just ignore it... sorry to all for those warnings.. )


Re: Swat New Generation TDM [First Release] - Reklez - 22.03.2012

you can ignore them by

pawn Code:
#pragma tabsize 0 //use this for awhile if you are lazy in fixing Loose Indentation
but still the warnings are still inside the script.

by the way Looks nice, but i don't want to create 3 servers, 2 is enough.
8/10, about the warnings that makes your script worst


Re: Swat New Generation TDM [First Release] - [EuG]ZeRoGoD - 22.03.2012

Quote:
Originally Posted by ServerScripter
View Post
i know , i said thanks for the effort he did (trying to fix the link)

EDIT : so the warnings are due the loose inendation , (you can just ignore it... sorry to all for those warnings.. )
shouldent ignore them just see what may cause it im still trying to finde out if anyluck ill be sure to let you know


Re: Swat New Generation TDM [First Release] - [EuG]ZeRoGoD - 22.03.2012

Code:
 if(dialogid == 8) {
        if(response == 1) {
            switch(listitem) {
                case 0:
                {
                    if(GetPlayerMoney(playerid) < 2000) {
                    }
                    else {
                        GivePlayerMoney(playerid,-2000);
                        GivePlayerWeapon(playerid,22,100);
                    }
                }
thats ur problem well 1 of them :P


Re: Swat New Generation TDM [First Release] - Mark™ - 22.03.2012

here's the fixed one : http://pastebin.com/e2ps7ZGk


Re: Swat New Generation TDM [First Release] - [EuG]ZeRoGoD - 22.03.2012

Quote:
Originally Posted by Xtreme_playa
View Post
here's the fixed one : http://pastebin.com/e2ps7ZGk
were dose the saved files goto cant see them in unsers :O or do i have to make one ??


Re: Swat New Generation TDM [First Release] - Mark™ - 22.03.2012

Quote:
Originally Posted by [EuG]ZeRoGoD
View Post
were dose the saved files goto cant see them in unsers :O or do i have to make one ??
Yeah create a folder named "cs" in the scriptfiles folder of your samp directory, otherwise your server would shutdown when you try to register.


Re: Swat New Generation TDM [First Release] - [EuG]ZeRoGoD - 22.03.2012

Quote:
Originally Posted by Xtreme_playa
View Post
Yeah create a folder named "cs" in the scriptfiles folder of your samp directory, otherwise your server would shutdown when you try to register.
do you get runtime error when u load it up??