Raised This Month: $ Target: $400
 0% 

Spawn sprite problem - code inside, needs fix


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
LynX
Veteran Member
Join Date: Oct 2004
Old 03-11-2005 , 11:15   Spawn sprite problem - code inside, needs fix
Reply With Quote #1

Ok, I wrote this small plugin to try to spawn sprite. Could you guys be so kind and polish it up so sprite shows on players position - sprite should totally hide player, so other players don't see that player whos using sprite until sprite vanishes. the code:
Code:
public plugin_init(id) {     register_plugin("Test","unknown","LynX")     register_clcmd("test","spawn_sprite")     return PLUGIN_CONTINUE } new sprite public spawn_sprite(id) {     new origin[3]     message_begin(MSG_ALL,SVC_TEMPENTITY)     write_entity(id)     write_coord(origin[0]) // x coordinate     write_coord(origin[1]) // y coordinate     write_coord(origin[2]) // z coordinate     write_short( sprite )  // sprite name     write_short( 6.0 )     // sprite life     message_end()     return PLUGIN_HANDLED } public plugin_precache() {     sprite = precache_model("sprites/testsprite.spr")     return PLUGIN_CONTINUE }
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
 



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 14:13.


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