This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Help: if terrorist try take respawn how add text?? (Very EASY)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wizz
Member
Join Date: Mar 2010
Old 05-30-2013 , 14:57   Help: if terrorist try take respawn how add text?? (Very EASY)
Reply With Quote #1

Hello i need help i think this is easy, only CT-s can take respawn but i want when terrorist try take then chat says: Only cts can take respawn..
Herest the code :
PHP Code:
case 9:

if(
cs_get_user_team(id) == CS_TEAM_CT

ColorChatidGREEN"[Super-Admin]: ^1Sa ärkasid uuesti ellu!" ); 
ExecuteHamB(Ham_CS_RoundRespawnid)



Last edited by wizz; 05-30-2013 at 14:58.
wizz is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-30-2013 , 18:08   Re: Help: if terrorist try take respawn how add text?? (Very EASY)
Reply With Quote #2

Quote:
Originally Posted by wizz View Post
PHP Code:
case 9:

if(
cs_get_user_team(id) == CS_TEAM_CT

ColorChatidGREEN"[Super-Admin]: ^1Sa ärkasid uuesti ellu!" ); 
ExecuteHamB(Ham_CS_RoundRespawnid)


change to

Code:
case 9: {     if(cs_get_user_team(id) == CS_TEAM_CT)     {         ColorChat( id, GREEN, "[Super-Admin]: ^1Sa ärkasid uuesti ellu!" );         ExecuteHamB(Ham_CS_RoundRespawn, id)     }     else {         ColorChat( id, GREEN, "Only cts can take respawn" ); }

and always indent your code... makes reading so much easier
__________________

Last edited by Blizzard_87; 05-30-2013 at 18:28.
Blizzard_87 is offline
wizz
Member
Join Date: Mar 2010
Old 05-30-2013 , 19:46   Re: Help: if terrorist try take respawn how add text?? (Very EASY)
Reply With Quote #3

Quote:
Originally Posted by Blizzard_87 View Post
change to

Code:
case 9: {     if(cs_get_user_team(id) == CS_TEAM_CT)     {         ColorChat( id, GREEN, "[Super-Admin]: ^1Sa ärkasid uuesti ellu!" );         ExecuteHamB(Ham_CS_RoundRespawn, id)     }     else {         ColorChat( id, GREEN, "Only cts can take respawn" ); }

and always indent your code... makes reading so much easier
Thank you

Last edited by wizz; 05-30-2013 at 20:13.
wizz is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-30-2013 , 20:10   Re: Help: if terrorist try take respawn how add text?? (Very EASY)
Reply With Quote #4

What is the error? Also, if you claim that it is very easy, why can't you do it yourself?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
wizz
Member
Join Date: Mar 2010
Old 05-30-2013 , 20:14   Re: Help: if terrorist try take respawn how add text?? (Very EASY)
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
What is the error? Also, if you claim that it is very easy, why can't you do it yourself?
PHP Code:
case 9:

    if(
cs_get_user_team(id) == CS_TEAM_CT
    { 
        
ColorChatidGREEN"[Super-Admin]: ^1Sa ärkasid uuesti ellu!" ); 
        
ExecuteHamB(Ham_CS_RoundRespawnid)
    }
    else {
        
ColorChatidGREEN"Only cts can take respawn" );

-->

PHP Code:
case 9:

    if(
cs_get_user_team(id) == CS_TEAM_CT
    { 
        
ColorChatidGREEN"[Super-Admin]: ^1Sa ärkasid uuesti ellu!" ); 
        
ExecuteHamB(Ham_CS_RoundRespawnid)
    }
    else {
        
ColorChatidGREEN"Only cts can take respawn" );
}

He missed put one } but now is everythink okay
wizz is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-30-2013 , 20:28   Re: Help: if terrorist try take respawn how add text?? (Very EASY)
Reply With Quote #6

sorry my program auto puts those in ... should look like this
Code:
case 9: {     if(cs_get_user_team(id) == CS_TEAM_CT)     {         ColorChat( id, GREEN, "[Super-Admin]: ^1Sa ärkasid uuesti ellu!" );         ExecuteHamB(Ham_CS_RoundRespawn, id)     }     else         ColorChat( id, GREEN, "Only cts can take respawn" ); }
__________________
Blizzard_87 is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-31-2013 , 09:39   Re: Help: if terrorist try take respawn how add text?? (Very EASY)
Reply With Quote #7

Is see estonian language, nice : )
.Dare Devil. is offline
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 04:48.


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