|
|
#1 |
|
Banned
![]() Join Date: Aug 2011
Location: Earth :d
Posts: 217
Reputation: 20
|
how to make /credits command and some tretx commands like /rules /founders ......
|
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2010
Location: Belgium
Posts: 768
Reputation: 17
|
Code:
if(strcmp("/credits", cmdtext, true) == 0)
{
SendClientMessage(playerid, COLOR_RED, "List server credits");
SendClientMessage(playerid, COLOR_YELLOW, "Server owner: [TI]knackworst");
SendClientMessage(playerid, COLOR_YELLOW, "Server Hoster: Nightdarkness");
SendClientMessage(playerid, COLOR_YELLOW, "Server Scripters: knackworst, Libra and Nightdarkness");
SendClientMessage(playerid, COLOR_YELLOW, "Server Site Maker: Nightdarkness and Knackworst");
SendClientMessage(playerid, COLOR_YELLOW, "Server Site: http://www.stuntacular.smffy.com/");
SendClientMessage(playerid, COLOR_YELLOW, "Server Mappers: Sam, [SU]iHateLolypops, knackworst ,Libra, Isus and Nightdarkness");
SendClientMessage(playerid, COLOR_YELLOW, "Server IRC Chat Maker: Sam");
SendClientMessage(playerid, COLOR_YELLOW, "Server IRC Chat: www.tirc.tk");
SendClientMessage(playerid, COLOR_YELLOW, "____________________________________________");
SendClientMessage(playerid, COLOR_GREEN, "Without these people this server wouldn't have been successful. (scroll up for all the messages!)");
return 1;
}
put it in between: OnPlayerCommandText { 'put the code I sent u here' return 0; } Now all you have to do is change my lines and write stuff u want about the functions used: http://wiki.sa-mp.com/wiki/OnPlayerCommandText http://wiki.sa-mp.com/wiki/SendClientMessage |
|
|
|
|
|
#3 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Mar 2011
Location: Zenica,Bosnia&Herzegovina
Posts: 205
Reputation: 16
|
pawn Code:
pawn Code:
|
|
|
|
|
|
#4 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2010
Location: The Netherlands
Posts: 1,491
Reputation: 120
|
Quote:
Here is also a example ZCMD: pawn Code:
|
|
|
|
|
|
|
#5 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2010
Location: Belgium
Posts: 768
Reputation: 17
|
|
|
|
|
|
|
#6 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Mar 2011
Location: Pawno.exe
Posts: 432
Reputation: 43
|
Simple really, just using SendClientMessage with a little bit of colour. Here is an Example via STRCMP and ZCMD
ZCMD method: pawn Code:
STRCMP Method: pawn Code:
|
|
|
|
|
|
#7 |
|
Little Clucker
![]() Join Date: Jun 2012
Posts: 48
Reputation: 0
|
Better...
Code:
if(strcmp("/credits", cmdtext, true) == 0) // Under OnPlayerCommandText
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Credits","Server Owner: Blah Blah\nServer Scripter : Blah blah\nServer Mapper: Blah blah","Ok","Exit");
return 1;
}
|
|
|
|
|
|
#8 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Aug 2011
Location: Westland, Michigan
Posts: 853
Reputation: 86
|
Why in the hell did you update a one year old thread?
Code:
This forum requires that you wait 120 seconds between posts. Please try again in 26 seconds. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Credits | Kwarde | Help Archive | 2 | 13/04/2011 05:56 AM |
| help please (credits will be awarded) | luigifan9 | Help Archive | 3 | 17/04/2010 01:50 AM |
| Only for [tag] (Giving Credits!) | Sal_Kings | Help Archive | 1 | 07/08/2009 09:47 PM |