AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Calculating Telelports.. (https://forums.alliedmods.net/showthread.php?t=155745)

Dr7sTyLe 04-26-2011 05:38

Calculating Telelports..
 
I need help with calculating points on maps-im building a mod but i need teleports and i dont no how to calculate them :(
can somone help ?

SonicSonedit 04-26-2011 07:08

Re: Calculating Telelports..
 
what.

Dr7sTyLe 04-26-2011 08:01

Re: Calculating Telelports..
 
Quote:

Originally Posted by SonicSonedit (Post 1458102)
what.

do you know drekes CFJail,he had teleports when say /lr,for example if a terror chose knife duel it will teleport him and the ct to the knife duel place.
here is part of his teleport code for example:
PHP Code:

    if(get_pcvar_num(cvar_teleport) && equali(mapname,"some1s_jailbreak"))
        {
            
ct_origin[0] = -759ct_origin[1] = 1047ct_origin[2] = 100
            te_origin
[0] = -585te_origin[1] = 867te_origin[2] = 100
            set_user_origin
(id,te_origin)
            
set_user_origin(tempid,ct_origin)

        } 

so i want to understand how to i know what is the point of specific place :O

drekes 04-26-2011 08:20

Re: Calculating Telelports..
 
You get see it by going to the place you want to be teleported to and using the amxx teleport menu. It'll display the coordinates.

SonicSonedit 04-26-2011 10:21

Re: Calculating Telelports..
 
Dr7sTyLe
Quote:

so i want to understand how to i know what is the point of specific place :O
They are preset for each map. As drekes said, go to desired place and open amx teleport menu, click save coordinates->current coordinates to see your current position.

Dr7sTyLe 04-27-2011 07:50

Re: Calculating Telelports..
 
Quote:

Originally Posted by drekes (Post 1458153)
You get see it by going to the place you want to be teleported to and using the amxx teleport menu. It'll display the coordinates.

but when i type amxmodmenu and search teleport menu its kind of blocked i cant choose this option :O

.Dare Devil. 04-27-2011 09:20

Re: Calculating Telelports..
 
; teleport.amxx
in plugins.ini must be a

teleport.amxx


All times are GMT -4. The time now is 04:27.

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