Raised This Month: $ Target: $400
 0% 

Team color sprite!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-14-2011 , 08:59   Re: Team color sprite!
Reply With Quote #1

// Create the lightning
PHP Code:
new id=read_data(2)

    new 
CsTeams:team=cs_get_user_team(id)
    if(
team==CS_TEAM_T)
    {
          
Create_TE_BEAMENTSiCasteriTargetg_iSprites[SPR_LIGHTNING], 01510iLineWidth100255255255); 
    }
    else 
f(team==CS_TEAM_CT)
    {
          
Create_TE_BEAMENTSiCasteriTargetg_iSprites[SPR_LIGHTNING], 01510iLineWidth1002550255);
    } 
it should work . (i think)

Last edited by Dolph_Ziggler; 06-14-2011 at 09:02.
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 06-14-2011 , 09:45   Re: Team color sprite!
Reply With Quote #2

else f -> else if
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 06-14-2011 , 11:21   Re: Team color sprite!
Reply With Quote #3

it is compiling without error, but it works strange, for T it works good, but for CT it isnt showing the sprite
Podarok is offline
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-14-2011 , 13:47   Re: Team color sprite!
Reply With Quote #4

PHP Code:
new id=read_data(2)

    new 
CsTeams:team=cs_get_user_team(id)
    if(
team==CS_TEAM_T)
    {
          
Create_TE_BEAMENTSiCasteriTargetg_iSprites[SPR_LIGHTNING], 01510iLineWidth100255255255); 
    }
    else if(
team==CS_TEAM_CT)
    {
          
Create_TE_BEAMENTSiCasteriTargetg_iSprites[SPR_LIGHTNING], 01510iLineWidth1002550255);
    }

her is it i hope it work 100% try it = )
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 06-16-2011 , 07:16   Re: Team color sprite!
Reply With Quote #5

While compiling there is no error, but in game when I use skill with this sprite it instantly kills a player and Sprite is invisivle, I cant see colors, I cant even see the sprite and in server console there is an error, something with fakemeta error, out of range and cs get user team error too... HELP please...
Podarok is offline
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-16-2011 , 08:20   Re: Team color sprite!
Reply With Quote #6

Quote:
Originally Posted by Podarok View Post
While compiling there is no error, but in game when I use skill with this sprite it instantly kills a player and Sprite is invisivle, I cant see colors, I cant even see the sprite and in server console there is an error, something with fakemeta error, out of range and cs get user team error too... HELP please...
did you include <cstrike>
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 06-16-2011 , 10:56   Re: Team color sprite!
Reply With Quote #7

Yes, of cource. If I didn't include cstrike, there would be an error while compiling, but here is in game error. What to do? Please help...
Podarok is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 06-16-2011 , 11:05   Re: Team color sprite!
Reply With Quote #8

It gives me FUN and FAkEMETA error like him. https://forums.alliedmods.net/showthread.php?t=159369
This out of range error...
Podarok is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 06-16-2011 , 14:20   Re: Team color sprite!
Reply With Quote #9

There was something about fakemefa, fun, cstrike. Wtf?
Podarok is offline
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-16-2011 , 16:32   Re: Team color sprite!
Reply With Quote #10

hey hey hey first of all dont make triple post just edit your last post second give me you .sma file and i will fix your bug
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
Reply



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


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