SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/08/2012, 07:16 AM   #1
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,799
Reputation: 294
Default Capture The Vehicle (0.3e) R2 (dini/zcmd/sscanf/foreach)

Capture The Vehicle (0.3e) R4

built and script by Romel Rowan


For all users of CPTV R3 who wants to see new updates and improvements in all new R4, just download the new package of CPTV R4 Christmas Pack below..

Bug Found:

I found bug in /setlevel it has been fix for R3, I wouldn't release R3 Because of just this little bug
so i will quote my post on Page 3.

Quote:
Originally Posted by Romel View Post
I found another bug in /setlevel during the R3 test.

Following bugs in /setlevel:

• Promote and Demote GameText is not showing (Fixed)
• Maxium level is 5 instead of 3 (Fixed)

Here is the new code of /setlevel.

pawn Code:
CMD:setlevel(playerid, params[])
{
    new level, id, string[128];
    if(pInfo[playerid][pLogin] == 0) return SendClientMessage(playerid, RED, "Register or Login first before using this command!");
    if(pInfo[playerid][pAdmin] >= 3 || IsPlayerAdmin(playerid))
    {
        if(sscanf(params, "ui", id, level)) return SendClientMessage(playerid, RED, "Syntax: /setlevel (id) (1 - 3)");
        if(level > 3 || level < 0) return SendClientMessage(playerid, RED, "Invalid Admin Level!, Valid Admin Level - 1 to 3");
        if(level == pInfo[id][pAdmin]) return SendClientMessage(playerid, RED, "That player is already in that adminlevel!");
        if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED, "Player not connected!");
        if(pInfo[id][pAdmin] > level) GameTextForPlayer(id, "~r~Demoted", 4000, 3);
        if(pInfo[id][pAdmin] < level) GameTextForPlayer(id, "~g~Promoted", 4000, 3);
        switch(level)
        {
            case 0: Admin = "Player";
            case 1: Admin = "Moderator";
            case 2: Admin = "Administrator";
            case 3: Admin = "Server Owner/Co-Owner";
        }
        pInfo[id][pAdmin] = level;
        format(string, sizeof(string), "Administrator %s(%d) has make %s(%d) as Admin Level %d | - %s", GetName(playerid), playerid, GetName(id), id, pInfo[id][pAdmin], Admin);
        SendClientMessageToAll(YELLOW, string);
        format(string, sizeof(string), "You make %s(%d) as admin %d | - %s", GetName(id), id, pInfo[id][pAdmin], Admin);
        SendClientMessage(playerid, LIME, string);
        format(string, sizeof(string), "Administrator %s(%d) has make you as Admin Level %d | - %s", GetName(playerid), playerid, pInfo[id][pAdmin], Admin);
        SendClientMessage(id, YELLOW, string);
    }
    else return SendClientMessage(playerid, RED, "You must be Admin Lvl 3 - Server Owner/Co-Owner to use this command!");
    return 1;
}
New Updates:

R4:

• Snow
• Hat for Christmas
• Remove Admin System
• Re-written Team Balancer
• Updated Plugins and Includes

R2 Beta:

• Team chat is fixed after finding that it was bug during R2 test.
• Reply command is fixed after finding that it was bug during R2 test.
• The unused On/Off duty on /admins has now commands, /aduty
• Added /god for Admin Lvl 1
• /stats has been repair!
• Maxium Admin Lvl, 3
• When you steal the opposite team vehicle, it has now a timer 30 seconds.
• Announcement Messages

R2:

• Buyzone system just like Counter-Strike Buyzone system. (Press Y to pop the shop menu)
• Added new admin commands for owner, /setpoints and /setmoney
• Weapon are attached to your body.
• Headshot System
• Team Balance System

Introduction:

I'm tired seeing many Capture The Flag scripts, so now i made a little bit crazy but funny new game.
"Capture The Vehicle", In this game, Each team must steal car from opposite team.
The Maxium Team Score is 5, if the team reach 5 score, oh and i forgot, you must protect your team's vehicle too. Server will restart. It uses dini for a while. and it uses sscanf, zcmd and foreach for players looping. Thanks to JellalKoayz for testing with me.

Features:

• Team Scoreboard
• Admin System with 5+ commands (will be added soon on R2)
• Saving Score/Money/Kills/Deaths/AdminLvl
• Vehicle Objective
• Gangzones
• Country Name Display OnPlayerConnect
• PM System with own Reply System
• Report Player System
• Team Chat
• Team Balancer
• Buyzone System
• Weapon are attached to your body.
• Headshot System
• Team Balance System
• Snow
• Hat for Christmas
• Remove Admin System

Commands:

• /help
• /rules
• /kill
• /me
• /pm
• /r
• /givemoney
• /w(hisper)

Screenshots:

Here are some screenshots of CPTV R1 (0.3e)
These are from my first testing of CPTV which there is no Team Scoreboard or commands yet.













Report any found bugs:

Current there is 0 bugs found during the test.
Post here if you found any bugs.

Credits:

Y_Less
Incognito
DracoBlue
Zeex
Slice
SA-MP Team
JellalKoayz
yezizhu
Peppe
RanSEE
kickerbat (Suggestions)
Romel

Downloadlink:

Capture The Vehicle (0.3e) R1_Romel_Rowan.zip (Mediafire)
Capture The Vehicle (0.3e) R1 Refix (Mediafire)
Capture The Vehicle (0.3e) R2 Beta (Mediafire)
Capture The Vehicle (0.3e) R2 (Mediafire)
Capture The Vehicle (0.3e) R4 Christmas Pack (Solidfiles)

Thank you for using my Capture The Vehicle R4 Gamemode!
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.

Last edited by _Jake_; 21/12/2012 at 08:57 AM.
_Jake_ is offline   Reply With Quote
Old 12/08/2012, 07:23 AM   #2
dozer954
Big Clucker
 
dozer954's Avatar
 
Join Date: Jul 2012
Location: Milan,Italy
Posts: 52
Reputation: 3
Default Re: Capture The Vehicle (0.3e) R1 (dini/zcmd/sscanf/foreach)

Runtime error
__________________
Skype:christian.lukanov
[CENTER]my server here 192.168.1.128:7777 (it work)[CENTER]
dozer954 is offline   Reply With Quote
Old 12/08/2012, 07:24 AM   #3
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,799
Reputation: 294
Default Re: Capture The Vehicle (0.3e) R1 (dini/zcmd/sscanf/foreach)

What is the error?

Edit:

Remove #include <streamer> to avoid the run time error
streamer.inc is not used in the script.
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.
_Jake_ is offline   Reply With Quote
Old 12/08/2012, 07:40 AM   #4
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,799
Reputation: 294
Default Re: Capture The Vehicle (0.3e) R1 (dini/zcmd/sscanf/foreach)

Thread updated!
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.
_Jake_ is offline   Reply With Quote
Old 12/08/2012, 08:19 AM   #5
Drake_Lopez
Little Clucker
 
Join Date: Mar 2012
Location: Sweden
Posts: 45
Reputation: 4
Default Re: Capture The Vehicle (0.3e) R1 (dini/zcmd/sscanf/foreach)

This GM Is Awesome!
__________________




IP: 66.85.148.154:7782
Drake_Lopez is offline   Reply With Quote
Old 12/08/2012, 08:24 AM   #6
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,799
Reputation: 294
Default Re: Capture The Vehicle (0.3e) R1 (dini/zcmd/sscanf/foreach)

Quote:
Originally Posted by Drake_Lopez View Post
This GM Is Awesome!
Thank you.

This forum requires that you wait 120 seconds between posts. Please try again in 75 seconds.
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.
_Jake_ is offline   Reply With Quote
Old 12/08/2012, 08:36 AM   #7
kickerbat
Big Clucker
 
Join Date: Aug 2012
Posts: 74
Reputation: 4
Default Re: Capture The Vehicle (0.3e) R1 (dini/zcmd/sscanf/foreach)

What happens if the car gets destroyed ?
kickerbat is offline   Reply With Quote
Old 12/08/2012, 08:37 AM   #8
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,799
Reputation: 294
Default Re: Capture The Vehicle (0.3e) R1 (dini/zcmd/sscanf/foreach)

Ooppss forgot about the car. Well nothing will happens, you have to wait till the car respawn.
I will fix this on R2. thank you for noticing me about this one.

Edit: on R2, when the objective car is destroy, it will respawn automatic.
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.
_Jake_ is offline   Reply With Quote
Old 12/08/2012, 08:40 AM   #9
kickerbat
Big Clucker
 
Join Date: Aug 2012
Posts: 74
Reputation: 4
Default Re: Capture The Vehicle (0.3e) R1 (dini/zcmd/sscanf/foreach)

Hi,

I suggest you fix asap and let people know in the main thread

edit;

Another idea would be to add a timer, that you have a certain amount of time to get to the checkpoint before the car is destoryed, then it respawns .
kickerbat is offline   Reply With Quote
Old 12/08/2012, 08:44 AM   #10
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,799
Reputation: 294
Default Re: Capture The Vehicle (0.3e) R1 (dini/zcmd/sscanf/foreach)

Thank you for the suggestion, Ok i will add the suggestion on R2 (if i have time)..
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.
_Jake_ 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] Roleplay Script - Get Started [sscanf, zcmd, dini, dudb, foreach] Jafet_Macario Gamemode Scripts 443 15/04/2014 05:31 PM
[Tutorial] How to: Implement Roleplay Chats [zcmd, sscanf, foreach] ReneG Tutorials 36 01/01/2014 12:12 PM
[GameMode] Las Venturas TDM [sscanf/YSI/foreach/ZCMD/Admin/VIP] [Nikk] Lanzamientos/Releases 20 24/02/2012 07:55 PM
[GameMode] International FreeRoam v0.1 - v0.2 - ZCMD, SScanf, SQLite, foreach! Edvin Gamemode Scripts 8 26/12/2011 12:58 AM
[GameMode] Blank Gamemode (dini, zcmd, sscanf2, foreach) pantelimonfl Gamemode Scripts 17 10/07/2011 04:56 PM


All times are GMT. The time now is 10:16 PM.


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