Raised This Month: $ Target: $400
 0% 

else if problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-19-2014 , 10:07   Re: else if problem
Reply With Quote #6

Code:
public Fwd_PlayerKilled() 
{ 
	if( g_iCurrentGame == GAME_NO || g_iCurrentGame == GAME_SPARTA || g_iCurrentGame == GAME_SHARK) //Check if a game is on
		return PLUGIN_HANLED; //Stop the function if a game is on
	
	else(getPlayers(CS_TEAM_T) == 1) //Else check if 1 player is alive? i guess
	{ 
		StopGame() //Stop game
		ColorChat(0, GREY, "Death Match") //Print message
	} 
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
 



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 09:41.


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