Raised This Month: $ Target: $400
 0% 

Newb at coding!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BustedRider
Senior Member
Join Date: Dec 2008
Location: Canada/QC
Old 11-30-2016 , 19:42   Newb at coding!
Reply With Quote #1

Hi i wanted to add random spam message into my blockbuilder plugin i saw this code... what i need exacly to do to add example 1 message and i will understand how to add more thanks
Code:
public Action:showInfo(Handle:hTimer){
	new iRandom;
	
	do{
		iRandom = GetRandomInt(1, 3);
	}
	while(g_iLastR==iRandom)

	
	if(iRandom==1 || iRandom==3)
		CPrintToChatAll("{GREEN}[NoRulez.hNs]{NORMAL}MoneyMod command:{LIGHTGREEN} !mm");
	else if(iRandom==2)
		CPrintToChatAll("{GREEN}[NoRulez.hNs]{NORMAL}Aim at the BLOCK or PLAYER and press{LIGHTGREEN} E{LIGHTGREEN} to see information");
	
	g_iLastR=iRandom;
	
	new Float:fTime = GetRandomFloat(60.0, 120.0);
	CreateTimer(fTime, showInfo);
}
__________________
BustedRider is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-30-2016 , 21:22   Re: Newb at coding!
Reply With Quote #2

For help with SourceMod, you should post in the SourceMod section.
__________________
fysiks is offline
BustedRider
Senior Member
Join Date: Dec 2008
Location: Canada/QC
Old 12-01-2016 , 18:36   Re: Newb at coding!
Reply With Quote #3

omg sorry always use wrong sections... sorry
__________________
BustedRider is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-02-2016 , 08:05   Re: Newb at coding!
Reply With Quote #4

Quote:
Originally Posted by BustedRider View Post
omg sorry always use wrong sections... sorry
Not only you
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
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:51.


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