Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: KylinZhang on March 02, 2013, 12:23:08 pm
-
i need help !
What can i do? Add to rules this command
plz help me ~
-
You mean to add a command that give you the server's rules ?
If yes, you have just to add some SendClientMessage to a command:
else if(strcmp(cmd, "rules", true) == 0) {
SendClientMessage(playerid,COLOR_RED,"Here put the first server's rule");
SendClientMessage(playerid,COLOR_RED,"Here put the second server's rule");
SendClientMessage(playerid,COLOR_RED,"Here put the third server's rule");
return 1;
}
If you want to add more than 3 rules, just add more SendClientMessage after the last.
SendClientMessage function:
SendClientMessage(playerid,color,text);
playerid = the player ID of that player that will receive the text
color = the color of the text.
(NOTE:In this version of VC:MP, if you will send a yellow text, and after that a red one, the yellow text will be red too. Is a bug.)
text = the text that will be sent.
-
sorry 2 errors
-
sorry 2 errors
Errors ? :| In this simple command ? Or I forget how to do a simple command, or you didn't understand.
Show me.
PS: I took a look again at the command and I don't see anything wrong...
-
lol then i thing he is using sql and putting pawn command haha kylinzhang what server u r using ? i thing he have mistake in color code add this in color COLOR_GREEN
-
use this:
[pawn]}
else if (strcmp(cmd, "!rules", true) == 0){
SendClientMessageToAll(COLOR_YELLOW, "put the first rule");
SendClientMessageToAll(COLOR_YELLOW, "put the second rule");
return 1;[/pawn]
-
use this:
[pawn]}
else if (strcmp(cmd, "!rules", true) == 0){
SendClientMessageToAll(COLOR_YELLOW, "put the first rule");
SendClientMessageToAll(COLOR_YELLOW, "put the second rule");
return 1;[/pawn]
error 054: unmatched closing brace
error 010: invalid function or declaration
error 010: invalid function or declaration
-
i need help !
What can i do? Add to rules this command
plz help me ~
WTF WTF WTF????? NOONE KNOWS SUCH A SIMPLE CMD?????????? Here
[pawn]public OnPlayerText(playerid, cmdtext)
{
new cmd;
new idx;
cmd = strtok(cmdtext, idx);
if (strcmp(cmd, "!rules", true) == 0) {
SendClientMessageToAll(0xFFFFFF,"1st line of rules");// 0xFFFFFF = COLOR RED
SendClientMessageToAll(0xFFFFFF,"2nd line of rules");
SendClientMessageToAll(0xFFFFFF,"3rd line of rules");
SendClientMessageToAll(0xFFFFFF,"4th line of rules");
//make more if you want more lines, make less if you want less lines
return 1;
}
return 1;//DO NOT RETURN 0 OR ELSE THE MESSAGE WILL NOT BE SENT(EVERYONE WILL BE MUTED)
}[/pawn]
and you who posted wrong ones, GO LEARN TO SCRIPT!
-
use this:
[pawn]}
else if (strcmp(cmd, "!rules", true) == 0){
SendClientMessageToAll(COLOR_YELLOW, "put the first rule");
SendClientMessageToAll(COLOR_YELLOW, "put the second rule");
return 1;[/pawn]
error 054: unmatched closing brace
error 010: invalid function or declaration
error 010: invalid function or declaration
have errors? i think you didn't understand.
-
Man its work
-
Did You put
#include <a_vcmp>
You Put it ?
Or
You May Put That On "OnPlayerCommandText"
To Find "OnPlayerCommandText"
Press "Ctrl (Control) + F"
And Copy Paste The "OnPlayerCommandText"
And Paste The Code At There.
use this:
[pawn]}
else if (strcmp(cmd, "!rules", true) == 0){
SendClientMessageToAll(COLOR_YELLOW, "put the first rule");
SendClientMessageToAll(COLOR_YELLOW, "put the second rule");
return 1;[/pawn]
Sorry You Wrong
it Should Be :
on Top :
[pawn]#define DGREEN 0x04A36BFF[/pawn]
[pawn]
else if (strcmp(cmd, "!rules", true) == 0){
SendClientMessageToAll(DGREEN, "put the first rule");
SendClientMessageToAll(DGREEN, "put the second rule");
return 1;
}
[/pawn]
-
Did You put
#include <a_vcmp>
You Put it ?
Or
You May Put That On "OnPlayerCommandText"
To Find "OnPlayerCommandText"
Press "Ctrl (Control) + F"
And Copy Paste The "OnPlayerCommandText"
And Paste The Code At There.
use this:
[pawn]}
else if (strcmp(cmd, "!rules", true) == 0){
SendClientMessageToAll(COLOR_YELLOW, "put the first rule");
SendClientMessageToAll(COLOR_YELLOW, "put the second rule");
return 1;[/pawn]
Sorry You Wrong
it Should Be :
on Top :
[pawn]#define DGREEN 0x04A36BFF[/pawn]
[pawn]
else if (strcmp(cmd, "!rules", true) == 0){
SendClientMessageToAll(DGREEN, "put the first rule");
SendClientMessageToAll(DGREEN, "put the second rule");
return 1;
}
[/pawn]
#define DGREEN
this does not need
-
Did You put
#include <a_vcmp>
You Put it ?
Or
You May Put That On "OnPlayerCommandText"
To Find "OnPlayerCommandText"
Press "Ctrl (Control) + F"
And Copy Paste The "OnPlayerCommandText"
And Paste The Code At There.
use this:
[pawn]}
else if (strcmp(cmd, "!rules", true) == 0){
SendClientMessageToAll(COLOR_YELLOW, "put the first rule");
SendClientMessageToAll(COLOR_YELLOW, "put the second rule");
return 1;[/pawn]
Sorry You Wrong
it Should Be :
on Top :
[pawn]#define DGREEN 0x04A36BFF[/pawn]
[pawn]
else if (strcmp(cmd, "!rules", true) == 0){
SendClientMessageToAll(DGREEN, "put the first rule");
SendClientMessageToAll(DGREEN, "put the second rule");
return 1;
}
[/pawn]
#define DGREEN
this does not need
DO NOT BUMP OLD TOPICS
-
This Is Old Topic :o ?
-
em...
-
thanks, man