Raised This Month: $ Target: $400
 0% 

[SLOVED] Change map for players, Like on Sven Coop .


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kuma77
Senior Member
Join Date: Sep 2014
Location: Behind PC
Old 12-16-2014 , 20:21   [SLOVED] Change map for players, Like on Sven Coop .
Reply With Quote #1

Hello there .

Of course evryone knows Sven Coop mod , i saw there the player who finished map they change automaticlly to next map how should i make that work , i try to use this plugin i've been edit it for HL "Half Life"
but not working .
one friend making HL Coop mod and i want some help about this issue .
__________________
SPACE TIME

Last edited by Kuma77; 12-17-2014 at 07:01.
Kuma77 is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 12-17-2014 , 00:40   Re: Change map by "id" players, Like Sven Coop Help plz !
Reply With Quote #2

You need to make an entity in the end of the map, and when a player touchs this entity the map will change to the next map (amx_nextmap cvar to get the next map)
__________________
simanovich is offline
Kuma77
Senior Member
Join Date: Sep 2014
Location: Behind PC
Old 12-17-2014 , 04:20   Re: Change map by "id" players, Like Sven Coop Help plz !
Reply With Quote #3

Yes but , i think this will be change map for all .
i want map change just for players who touch entity not all players This can be ?
__________________
SPACE TIME
Kuma77 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-17-2014 , 05:21   Re: Change map by "id" players, Like Sven Coop Help plz !
Reply With Quote #4

Quote:
Originally Posted by Kuma77 View Post
Yes but , i think this will be change map for all .
i want map change just for players who touch entity not all players This can be ?
You would need multiple servers for that and redirect players to them.
Redirecting players has been blocked by VALVe, but you can print a message saying that they have to connect to a new server.
__________________
Kia is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-17-2014 , 04:56   Re: Change map by "id" players, Like Sven Coop Help plz !
Reply With Quote #5

What? That is how it works in Sven Co-op? If I remember right, when someone touches mapchange entity, it changes for everybody on the server, not just that player...
klippy is offline
Kuma77
Senior Member
Join Date: Sep 2014
Location: Behind PC
Old 12-17-2014 , 05:33   Re: Change map by "id" players, Like Sven Coop Help plz !
Reply With Quote #6

Quote:
Originally Posted by Kia View Post
You would need multiple servers for that and redirect players to them.
Redirecting players has been blocked by VALVe, but you can print a message saying that they have to connect to a new server.
i think it will be like that .

Quote:
Originally Posted by KliPPy View Post
What? That is how it works in Sven Co-op? If I remember right, when someone touches mapchange entity, it changes for everybody on the server, not just that player...
Yes sorry i didnt play sven coop i just watch some gameplay videos .

so its need to set cvar amx_nextmap , and this need to set next map fast without waiting , can someone show an example.
__________________
SPACE TIME

Last edited by Kuma77; 12-17-2014 at 05:43. Reason: nvm
Kuma77 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-17-2014 , 05:48   Re: Change map by "id" players, Like Sven Coop Help plz !
Reply With Quote #7

Use
Code:
server_cmd("changelevel yourmaphere")
__________________
Kia is offline
Kuma77
Senior Member
Join Date: Sep 2014
Location: Behind PC
Old 12-17-2014 , 05:57   Re: Change map by "id" players, Like Sven Coop Help plz !
Reply With Quote #8

Quote:
Originally Posted by Kia View Post
Use
Code:
server_cmd("changelevel yourmaphere")
Thx but there is many maps eg : i need check if i am on map1 go to map2 and if am on map2 then go to map3, i want that keep working automatically not manually and thats it +check maps on mapcycle (map1-2-3 etc .. )
__________________
SPACE TIME
Kuma77 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-17-2014 , 06:29   Re: Change map by "id" players, Like Sven Coop Help plz !
Reply With Quote #9

get_mapname() is your friend.
__________________
Kia is offline
Kuma77
Senior Member
Join Date: Sep 2014
Location: Behind PC
Old 12-17-2014 , 06:36   Re: Change map by "id" players, Like Sven Coop Help plz !
Reply With Quote #10

Quote:
Originally Posted by Kia View Post
get_mapname() is your friend.
and can i use on this
PHP Code:
if(equal(szMap"map1"))
{
         
// server_cmd("changelevel map2")
}
if(
equal(szMap"map2"))
{
         
// server_cmd("changelevel map3")

am just thinking ! . this will work ?
__________________
SPACE TIME
Kuma77 is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 15:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode