Teleport bomb carrier to bomb site.
I need a plugin that teleports the player carrying the bomb to a bomb site after spawning.
Or just spawning on the bomb site would be good enough. Actually, spawning a planted bomb on a bomb site would also work. I tried looking in telemenu.sma, but I could not make use of anything there. Thanks. |
Re: Teleport bomb carrier to bomb site.
Try looking in bomb status, there's a menu that allows admins to teleport to a bomb site(a/b). But the code is pretty complicated so I'm not sure you will understand.
So, what do you need? Spawn a planted bomb or move the carrier to a random bombsite? |
Re: Teleport bomb carrier to bomb site.
Quote:
And it looks like this: T spawn on B site (using the map spawn editor plugin) CT spawn outside B site and in tunnels. Both teams are given full gear, but some different grenades. The bomb is automatically given to every terrorist, and a plugin forces the player touching the bomb zone to plant the bomb instantly on spawn, all other bombs are deleted. This works alright, only problem is that you can only have 5 terrorist spawn points because someone has to touch the bombzone. So you can't spread the spawn points around and make it different. So the best thing would be if the bomb was automatically planted on round start, without a player having to plant it. This is the plugin I'm using right now to force plant the bomb. I basically slaughtered other peoples code and put something together, not very pretty. Code:
|
Re: Teleport bomb carrier to bomb site.
Quote:
|
Re: Teleport bomb carrier to bomb site.
Quote:
This means bomb is not always planted. Also it would be much better to be able to place 25 spawn points, then you can make it less predictable where terrorists are. And you can mix it up much more and make the scenarios different. |
Re: Teleport bomb carrier to bomb site.
Well I might write a plugin that will teleport the player with the bomb to a random bombsite.
Will that be ok? |
Re: Teleport bomb carrier to bomb site.
Quote:
The bomb carrier will spawn on A maybe, when the spawn points are set to spawn on B. So one player will then be alone on A. If you can spawn a bomb or teleport the bomb carrier to coordinates, I can add the those myself. I don't mind if it only teleports to bombsite B on dust2, maybe I can compile multiple plugins for all maps with different coordinates. Thank you. Quote:
The only thing I will change is that the plugin gives everyone the bomb, and deletes every bomb that isnt planted. So it will work. |
Re: Teleport bomb carrier to bomb site.
Here you go, this will teleport the player with the bomb to bombsite B in Dust2. It will teleport them after the
freeze time is over. PHP Code:
|
Re: Teleport bomb carrier to bomb site.
Quote:
When I try to compile, I get: "Error: Array sizes do not match, or destination array is too small on line 38" |
Re: Teleport bomb carrier to bomb site.
Quote:
|
All times are GMT -4. The time now is 14:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.