Jump to content

[REL] Basic President vs Terrorists v1.0 [Gamemode - PvT]


Bilal135

Recommended Posts

2usgyep.png

Hi guys, today I am here to present a new gamemode created by me from scratch. This is a basic gamemode, not the best, but I made it editable (uncompiled) so other people can edit as they wish, but removing credit ain't allowed at all.

This gamemode consists of three teams, "Police", "Terrorists" and "President". However, when we join server, we have to type the command /police, or /terrorist or /president. President is randomly chosen among the players. I may edit and add more teams soon, maybe "Special Agency", "Medics" and "Civilians". It may take some time for releasing as these are school days, so less time to script.

Maps & Scripts Progress

Map Pack 1: Done

Map Pack 2: Done

Map Pack 3: Done

Map Pack 4: Done

Stay updated with the topic, and give your suggestions as well. I'm not doing this with GUI because I am a newbie in GUI scripting. Maybe later, I'll update it, but for now, it will be simple.

Download: https://community.multitheftauto.com/index.php?p= ... s&id=10968

Thanks.

Edited by Guest
Link to comment
bug? entire gamemode does not work, or when you turn on a black screen

Let me explain, first of all, in the console, type /stop play, then delete the meta of my gamemode, then put all the folders in the resources. Start Teams, Join Message, and any of the Map_Pack (Start 1 at a time). Join the server, type /police or /terrorist or /president. Then you'll spawn.

I am also deciding to add some updates in future.

Uploaded Video on Facebook: https://www.facebook.com/video.php?v=35 ... nref=story

Link to comment
The idea was cool , but your work is pretty bad and simple. And your JoinMessage resource won't work.

It worked btw, but I added something new, read the update below.

i tested it and it works good but , it misses many things such as missions , events that will make it better

I strongly suggest you to read readme.txt, LaCosta ^^. Also, the mission of police is to protect president and terrorists mission is to kill the president, and president has to save his life.

Updates:

• Removed JoinMessage and added JoinText. [screenshot Below]

• Added readme.txt in zip.

Screenshot [JoinText]

21afo7s.png

Link to comment
The idea was cool , but your work is pretty bad and simple. And your JoinMessage resource won't work.

It worked btw, but I added something new, read the update below.

Not really possible ,because onPlayerJoin doesn't have parameters and source is the element who joined in the server.

function onJoin(pk) 
         outputChatBox("Welcome To President vs Terrorist Server", pk, 255, 0, 0) 
         outputChatBox("Choose:", pk, 255, 0, 0) 
         outputChatBox("/police - Play as Police", pk, 255, 0, 0) 
         outputChatBox("/terrorist - Play as Terrorist", pk, 255, 0, 0) 
         outputChatBox("/president - Play as President (Luck)", pk, 255, 0, 0) 
end 
addEventHandler("onPlayerJoin", root, onJoin) 
  

Should be ;

function onJoin() 
         outputChatBox("Welcome To President vs Terrorist Server", source, 255, 0, 0) 
         outputChatBox("Choose:", source, 255, 0, 0) 
         outputChatBox("/police - Play as Police", source, 255, 0, 0) 
         outputChatBox("/terrorist - Play as Terrorist", source, 255, 0, 0) 
         outputChatBox("/president - Play as President (Luck)", source, 255, 0, 0) 
end 
addEventHandler("onPlayerJoin", root, onJoin) 
  

Link to comment
The idea was cool , but your work is pretty bad and simple. And your JoinMessage resource won't work.

It worked btw, but I added something new, read the update below.

Not really possible ,because onPlayerJoin doesn't have parameters and source is the element who joined in the server.

function onJoin(pk) 
         outputChatBox("Welcome To President vs Terrorist Server", pk, 255, 0, 0) 
         outputChatBox("Choose:", pk, 255, 0, 0) 
         outputChatBox("/police - Play as Police", pk, 255, 0, 0) 
         outputChatBox("/terrorist - Play as Terrorist", pk, 255, 0, 0) 
         outputChatBox("/president - Play as President (Luck)", pk, 255, 0, 0) 
end 
addEventHandler("onPlayerJoin", root, onJoin) 
  

Should be ;

function onJoin() 
         outputChatBox("Welcome To President vs Terrorist Server", source, 255, 0, 0) 
         outputChatBox("Choose:", source, 255, 0, 0) 
         outputChatBox("/police - Play as Police", source, 255, 0, 0) 
         outputChatBox("/terrorist - Play as Terrorist", source, 255, 0, 0) 
         outputChatBox("/president - Play as President (Luck)", source, 255, 0, 0) 
end 
addEventHandler("onPlayerJoin", root, onJoin) 
  

We can define element as anything, pk, player, anything, so with pk variable, it worked for me, but it was so simple that I removed it and added JoinText which is a lot better than that.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...