SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 08/07/2012, 01:30 PM   #1
Giovanni
Big Clucker
 
Giovanni's Avatar
 
Join Date: Jul 2010
Posts: 61
Reputation: 24
Default Terrorists vs Soldiers [sscanf2, zcmd, y_ini]


Introduction

Note: This project was not meant to be released in the first place, that's why some parts/features are unfinished or not implemented at all.


This is a quite simple teamdeathmatch script. Like the name already says: there are 2 groups, Terrorists and Soldiers. The goal of the Terrorists is to steal all 3 flags from the soldiers. Those flags can be spread all over the map. The Soldiers however have to try to stop them.


How to win...
  • ...as Soldier: If your team manages it to stop the terrorists from stealing all 3 flags (2 would be ok) for 10 minutes (or longer) your team wins.
  • ...as Terrorist: Simply steal all 3 flags from the Soldiers.


Features
  • Uses:
    • ZCMD
    • sscanf2
    • y_ini
    • foreach (aka y_iterate)
    • Incognito's Streamer
    • Whirlpool
  • Totally dynamic map system
  • Account system

Downsides / not implented features (yet):
  • No Admin commands (only /setmap )
  • Really simple anti cheat system
  • Multi language support was planned at first

Creating Maps

Creating maps is quite simple. If your map uses a filterscript (for objects & vehicles) you will need 2 files:

Code:
Map_1.ini (scriptfiles/TvS/maps/Map_1.ini)
Map_1.amx (filterscipts/Map_1.amx)
If it does not use a filterscript (if you don't need any objects or vehicles) you will only need Map_1.ini in this case.

The Map_x.ini must look like this:
Code:
[map]
Name = <MapName>
Creator = <MapCreator>
SpawnRedX = 0.0
SpawnRedY = 0.0
SpawnRedZ = 0.0
SpawnGreenX = 0.0
SpawnGreenY = 0.0
SpawnGreenZ = 0.0
Interior = 0
Time = 20 // ... The world time you want to have in your map
Weather = 0 // ... The weather you want to have in your map
Flag1X = 0.0
Flag1Y = 0.0
Flag1Z = 0.0
Flag2X = 0.0
Flag2Y = 0.0
Flag2Z = 0.0
Flag3X = 0.0
Flag3Y = 0.0
Flag3Z = 0.0
HasFS = true/false // ... Must be 'true' if you want to use a filterscript for this map (objects & vehicles)

IMPORTANT:

The map IDs must be in a row (e.g.: 0,1,2,3,...). If you delete a map, you must update the IDs. That's not really a good solution, I know. I might change this in later versions. The map system always chooses the next map. If it does not exist, it will automatically set the map to ID 0.

Changelog

VersionChanges
3.24First public release

More or less important stuff
  • How to make yourself Admin: Go ingame and register an account by using '/register'. After that, leave the game and edit the variable 'Adminlevel' in your account file from 0 to 4 (highest admin level).
  • How to change the map (forcing): [You must be Level 4 Admin to do this] Use the command '/setmap [id]'


Credits
  • Y_Less: YSI, Whirlpool plugin & sscanf2
  • Incognito: Streamer plugin
  • ZeeX: ZCMD


Download

Main:
Terrorists vs Soldiers Gamemode

Other:
YSI 3.1
sscanf 2
Whirlpool
Streamer
Giovanni is offline   Reply With Quote
Old 08/07/2012, 01:50 PM   #2
Littlehelper
Gangsta
 
Littlehelper's Avatar
 
Join Date: Nov 2011
Location: 420
Posts: 974
Reputation: 178
Default Re: Terrorists vs Soldiers [sscanf2, zcmd, y_ini]

Decent and simple, nice job.
__________________
Quote:
<Norsehawk> If pigs flew, we'd need stronger umbrellas
<Norsehawk> and if my cat shat gold, I would be rich...
Littlehelper is offline   Reply With Quote
Old 08/07/2012, 03:19 PM   #3
shayan122
Banned
 
Join Date: May 2011
Location: Iran
Posts: 201
Reputation: 16
Default Re: Terrorists vs Soldiers [sscanf2, zcmd, y_ini]

Seems nice good Job
shayan122 is offline   Reply With Quote
Old 08/07/2012, 06:00 PM   #4
Edu33
High-roller
 
Edu33's Avatar
 
Join Date: Apr 2012
Location: H3LL
Posts: 1,158
Reputation: 89
Default Re: Terrorists vs Soldiers [sscanf2, zcmd, y_ini]

Good job. =)
__________________

Parei.
Edu33 is offline   Reply With Quote
Old 20/03/2013, 06:29 PM   #5
MehranGta
Big Clucker
 
Join Date: Jul 2012
Location: GetMehranPos(x, y, z); / Undefined Var
Posts: 174
Reputation: -7
Default Re: Terrorists vs Soldiers [sscanf2, zcmd, y_ini]

good work
__________________
Quote:
Originally Posted by Conrad Hilton

Success seems to be connected
with action. Successful men keep
moving; they make mistakes, but
they do not quit.
Tell me your MINOR scripting problems, I 'll help you.
Quote:
Originally Posted by caoraivoso3 View Post
I sell 2 points of rep for 1 euro pm me for more info.
Sounds to be fun ... :
I am script a code in 2 minutes, and after compile I leave out 20 minutes to fix bugs/errors/warnings of it ...
MehranGta is offline   Reply With Quote
Old 20/03/2013, 08:46 PM   #6
punner
Little Clucker
 
punner's Avatar
 
Join Date: Aug 2012
Posts: 10
Reputation: 2
Default Re: Terrorists vs Soldiers [sscanf2, zcmd, y_ini]

I have just gone through your gamemode and edited a lot of the messages in game and the team names, plus the colors and such like. I am compiling it and i have just realized you have places whirlpool at an include?

Fatal error 100: cannot read from file: "whirlpool"

I have tried just removing the include from within the gamemode, but obviously it brings me plenty of errors due to the
include being inc operated in the script. So i was just wondering where i could download whirlpool at an include? As i have it as a plugin and i am new to pawno, but i would just like to know how to sort this problem i am getting.

Last edited by punner; 20/03/2013 at 10:08 PM. Reason: no need to double post.
punner is offline   Reply With Quote
Old 21/03/2013, 03:46 AM   #7
_J0ykiLl3r_
Big Clucker
 
_J0ykiLl3r_'s Avatar
 
Join Date: Oct 2012
Posts: 62
Reputation: 6
Default Re: Terrorists vs Soldiers [sscanf2, zcmd, y_ini]

Nyc work..........
__________________
HostName: [0.3x] Indian Fun Server [IFS]
Address: 193.183.98.129:7778
Players: 0 / 100
Ping: 335
Mode: Stunt/DM/TDM/Parkour/Drift/Fre
Map: Mystery World

_J0ykiLl3r_ is offline   Reply With Quote
Old 21/03/2013, 04:59 AM   #8
Xoomer
Big Clucker
 
Join Date: Nov 2012
Location: Pakistan
Posts: 115
Reputation: -23
Default Re: Terrorists vs Soldiers [sscanf2, zcmd, y_ini]

Quote:
Originally Posted by punner View Post
I have just gone through your gamemode and edited a lot of the messages in game and the team names, plus the colors and such like. I am compiling it and i have just realized you have places whirlpool at an include?

Fatal error 100: cannot read from file: "whirlpool"

I have tried just removing the include from within the gamemode, but obviously it brings me plenty of errors due to the
include being inc operated in the script. So i was just wondering where i could download whirlpool at an include? As i have it as a plugin and i am new to pawno, but i would just like to know how to sort this problem i am getting.
download luxadmin fs and get there whirlpool inc
__________________
Simple Be good
Xoomer is offline   Reply With Quote
Old 21/03/2013, 03:54 PM   #9
FiReMaNStone
Huge Clucker
 
Join Date: Jan 2013
Location: Hell
Posts: 303
Reputation: -14
Default Re: Terrorists vs Soldiers [sscanf2, zcmd, y_ini]

Good Job
FiReMaNStone is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] Replay Sript v0.1 [ZCMD, Y_ini, sscanf2] wNNk Gamemode Scripts 8 28/01/2012 02:33 PM
sscanf2, y_ini and sa-mp 0.3d PlayHard Scripting Help 1 29/12/2011 08:28 PM
sscanf2 and zcmd letters Help Archive 5 18/07/2011 06:38 AM


All times are GMT. The time now is 04:18 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.