AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SLOVED] Change map for players, Like on Sven Coop . (https://forums.alliedmods.net/showthread.php?t=253170)

Kuma77 12-16-2014 20:21

[SLOVED] Change map for players, Like on Sven Coop .
 
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 .

simanovich 12-17-2014 00:40

Re: Change map by "id" players, Like Sven Coop Help plz !
 
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)

Kuma77 12-17-2014 04:20

Re: Change map by "id" players, Like Sven Coop Help plz !
 
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 ?

klippy 12-17-2014 04:56

Re: Change map by "id" players, Like Sven Coop Help plz !
 
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...

Kia 12-17-2014 05:21

Re: Change map by "id" players, Like Sven Coop Help plz !
 
Quote:

Originally Posted by Kuma77 (Post 2236298)
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.

Kuma77 12-17-2014 05:33

Re: Change map by "id" players, Like Sven Coop Help plz !
 
Quote:

Originally Posted by Kia (Post 2236313)
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 (Post 2236303)
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.

Kia 12-17-2014 05:48

Re: Change map by "id" players, Like Sven Coop Help plz !
 
Use
Code:
server_cmd("changelevel yourmaphere")

Kuma77 12-17-2014 05:57

Re: Change map by "id" players, Like Sven Coop Help plz !
 
Quote:

Originally Posted by Kia (Post 2236327)
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 .. )

Kia 12-17-2014 06:29

Re: Change map by "id" players, Like Sven Coop Help plz !
 
get_mapname() is your friend.

Kuma77 12-17-2014 06:36

Re: Change map by "id" players, Like Sven Coop Help plz !
 
Quote:

Originally Posted by Kia (Post 2236338)
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 ?


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

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