Raised This Month: $ Target: $400
 0% 

spawn beams


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 01-26-2010 , 16:29   spawn beams
Reply With Quote #1

what i want to do ? = [Req] zbeamsprite maker


Quote:
i need a zbeamsprite spawner which makes 2 beamsprites.
with a menu or 2 commands.

for example :
player is on origin x1,y1,z1 and types amx_sprite1
and goes to origin x2,y2,z2 and types amx_sprite2

so between this points should the beamspeite be spawned with a task to show the beam for all users. + a config directory to save and load the origins on mapload
so i tried to write something like this. now i need a little help to get the 2. origins and spawn the sprites.

PHP Code:
register_clcmd("say 1","_makeZone")


public 
plugin_precache() 
{
    
sprite_zbeam precache_model("sprites/zbeam4.spr")
}
register_directory()
{
    
get_configsdir(g_ConfigsDir63)
    
format(g_CTZoneDir63"%s/CTzoneZ"g_ConfigsDir)
    
    if(!
dir_exists(g_CTZoneDir))
    {
        
log_amx("CT Zone directory does not exist")
        
g_DirExist false
    

    else 
    {
        
g_DirExist true
        
        
new curMap[32]
        
get_mapname(curMap31)
        
load_origins(curMap)
        
        
set_task(1.0"task_visuals"TASK_ID__"b")
    }
}
public 
open_CTZone(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
    
if(!g_DirExist
        
console_print(id"CT Zone directory does not exist")
    else
        
display_CTZone(id)
    
    return 
PLUGIN_HANDLED
}
_makeZone(id)
{
    new 
iOrigin[3], CurMap[32]
    
get_user_origin(idiOrigin0)
    
get_mapname(CurMap31)

    
zoneID 0
    save_origin
(CurMapiOrigin)
    
load_origins(CurMap)
    
    if(
task_exists(TASK_ID))
        
remove_task(TASK_ID)

now i dk how to save the secund origins and after this write_coords
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



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 07:28.


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