Raised This Month: $ Target: $400
 0% 

Sprites in Maps


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Schnuffer
Junior Member
Join Date: Sep 2004
Location: Leipzig, Germany
Old 12-27-2004 , 14:15   Sprites in Maps
Reply With Quote #1

Kann mir mal einer bitte den code vervollständigen? Es soll damit ein Logo in die Maps gemacht werden.

Code:
#include <amxmodx> #include <engine> new map_cors_origin[3] new map_cors_pre public plugin_init(){     register_plugin("Logo", "0.1", "KriegsGeBiet")     map_cors_pre = map_cors_present(map_cors_origin)     logo()     return PLUGIN_CONTINUE } public logo(){     if ( map_cors_pre ){                new iEnt = create_entity( "env_sprite" )                entity_set_model( iEnt, "sprites/logo.spr" )         entity_set_origin( iEnt, map_cors_origin )                         DispatchSpawn( iEnt )     }       } map_cors_present(maporigin[3]){     if (file_exists("addons/amxmodx/configs/logo.cfg")){         new readdata[64]         new currentmap[32]         get_mapname(currentmap,31)         new map[32],x[16],y[16],z[16], len         for(new i=0; i < 100 && read_file("addons/amxmodx/configs/logo.cfg",i,readdata,63,len); i++) {             parse(readdata,map,31,x,15,y,15,z,15)             if(equal(map,currentmap)){                 maporigin[0] = str_to_num(x)                 maporigin[1] = str_to_num(y)                 maporigin[2] = str_to_num(z)                 return 1             }         }       }                   return 0 } public plugin_precache()     precache_model("sprites/logo.spr")
__________________
IRC: #kriegsgebiet @ QuakeNet
Schnuffer is offline
Send a message via ICQ to Schnuffer
 



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 19:23.


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