SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 28/10/2010, 10:18 AM   #1
jonnyboy
Huge Clucker
 
jonnyboy's Avatar
 
Join Date: Aug 2010
Location: Sweden
Posts: 410
Reputation: 3
Question [HELP] How can i make an /rules command

How can i make a /rules command?


like when u write /rules you see on chat:

#1 Cheating and hacking - Permban
#2 No Spam
#3 race on %location% only

and etc

i rlly want one for my gta sa server



Plz make an pwn code



edit:

thx to <wepoz>

pawn Code:
if(!strcmp(cmdtext,"/rules",true))
            {
                SendClientMessage(playerid, 0x0, "1.Cheating and hacking - Permban");
                SendClientMessage(playerid, 0x0, "2.Red Player Color: Terrorist's");
        SendClientMessage(playerid, 0x0, "3.Race on %location% only");
            return 1;
}
__________________

Special thanks to [GMS]toX.

Last edited by jonnyboy; 28/10/2010 at 01:47 PM. Reason: thx to <wepoz>
jonnyboy is offline  
Old 28/10/2010, 10:19 AM   #2
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 2,628
Reputation: 136
Default Re: [HELP] How can i make an /rules command

Look up tutorials, and SendClientMessage or dialogs (SCM is the most basic)
__________________


NEW: [FS] Simple Cellphones

if( strfind( title, "REP", true ) != -1 )
{________________________________________
Sigh();__________________________
}________________________________________


LarzI is offline  
Old 28/10/2010, 10:21 AM   #3
jonnyboy
Huge Clucker
 
jonnyboy's Avatar
 
Join Date: Aug 2010
Location: Sweden
Posts: 410
Reputation: 3
Default Re: [HELP] How can i make an /rules command

its not so simple to me :I "and where is the tutorials?" and i need a VIDEO one not plain text "i hate to read and i will forgot rlly fast"
__________________

Special thanks to [GMS]toX.
jonnyboy is offline  
Old 28/10/2010, 10:24 AM   #4
<Weponz>
Huge Clucker
 
<Weponz>'s Avatar
 
Join Date: Jul 2010
Location: Program Files/Scripts/Weponz/Pawno
Posts: 459
Reputation: 1
Default Re: [HELP] How can i make an /rules command

Just Made One For You Now:

Code:
if(!strcmp(cmdtext,"/rules",true))
	        {
                SendClientMessage(playerid, 0x0, "1.Cheating and hacking - Permban");
                SendClientMessage(playerid, 0x0, "2.Red Player Color: Terrorist's");
		SendClientMessage(playerid, 0x0, "3.Race on %location% only");
	        return 1
}
This can be converted into any command that shows text..
__________________
Quote:
Originally Posted by __
1) I'm not fat
2) I'm smart
3) I have a normal life
4) Again, I have a normal life and I'm smart
Quote:
Originally Posted by Geso
I like talking to people like this, makes me feel smart xD
<Weponz> is offline  
Old 28/10/2010, 10:26 AM   #5
jonnyboy
Huge Clucker
 
jonnyboy's Avatar
 
Join Date: Aug 2010
Location: Sweden
Posts: 410
Reputation: 3
Default Re: [HELP] How can i make an /rules command

Quote:
Originally Posted by <Weponz> View Post
Just Made One For You Now:

Code:
if(!strcmp(cmdtext,"/rules",true))
	        {
                SendClientMessage(playerid, 0x0, "1.Cheating and hacking - Permban");
                SendClientMessage(playerid, 0x0, "2.Red Player Color: Terrorist's");
		SendClientMessage(playerid, 0x0, "3.Race on %location% only");
	        return 1
}
This can be converted into any command that shows text..
Thank you so mutch! "i will make a credit for you!!!"
__________________

Special thanks to [GMS]toX.
jonnyboy is offline  
Old 28/10/2010, 10:27 AM   #6
SampStunta
Huge Clucker
 
SampStunta's Avatar
 
Join Date: May 2009
Location: Western Australia
Posts: 409
Reputation: 0
Default Re: [HELP] How can i make an /rules command

Lol, that was easy :S
SampStunta is offline  
Old 28/10/2010, 10:30 AM   #7
jonnyboy
Huge Clucker
 
jonnyboy's Avatar
 
Join Date: Aug 2010
Location: Sweden
Posts: 410
Reputation: 3
Talking Re: [HELP] How can i make an /rules command

Quote:
Originally Posted by SampStunta View Post
Lol, that was easy :S
im noob on cmds
__________________

Special thanks to [GMS]toX.
jonnyboy is offline  
Old 28/10/2010, 10:34 AM   #8
<Weponz>
Huge Clucker
 
<Weponz>'s Avatar
 
Join Date: Jul 2010
Location: Program Files/Scripts/Weponz/Pawno
Posts: 459
Reputation: 1
Default Re: [HELP] How can i make an /rules command

Quote:
Originally Posted by jonnyboy View Post
Thank you so mutch! "i will make a credit for you!!!"
NP...But dude trust me best thing you could do is download server files from SAMP Downloads and open one of the Gamemodes and see how everything works...It makes WIKI more understandable..
__________________
Quote:
Originally Posted by __
1) I'm not fat
2) I'm smart
3) I have a normal life
4) Again, I have a normal life and I'm smart
Quote:
Originally Posted by Geso
I like talking to people like this, makes me feel smart xD
<Weponz> is offline  
Old 28/10/2010, 10:37 AM   #9
jonnyboy
Huge Clucker
 
jonnyboy's Avatar
 
Join Date: Aug 2010
Location: Sweden
Posts: 410
Reputation: 3
Default Re: [HELP] How can i make an /rules command

Quote:
Originally Posted by <Weponz> View Post
NP...But dude trust me best thing you could do is download server files from SAMP Downloads and open one of the Gamemodes and see how everything works...It makes WIKI more understandable..
ok (there is an sa-mp wiki? o_o)
__________________

Special thanks to [GMS]toX.
jonnyboy is offline  
Old 28/10/2010, 10:40 AM   #10
PilotXtreme
Big Clucker
 
Join Date: Oct 2010
Posts: 70
Reputation: 0
Default Re: [HELP] How can i make an /rules command

Your return forgot a semi colun it should be 'return 1;'
PilotXtreme is offline  
 

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help To make command BSTA Help Archive 1 07/02/2011 07:00 AM
How can I make the rules appear when a player spawns acok97 Help Archive 8 28/10/2010 10:47 AM
How To Make A /rob Command? stieben Help Archive 5 01/08/2010 05:48 PM
how i make rules menu OmarEco Help Archive 4 24/06/2010 03:10 PM
How to make /rules?? Badandy Help Archive 6 13/07/2009 01:59 AM


All times are GMT. The time now is 09:20 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.