20.11.2010, 21:45
.....
Quote:
|
pawn Код:
|
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, red, "~~~Help~~~ ");
SendClientMessage(playerid, red, "First Of All Read The Rules! ");
SendClientMessage(playerid, red, "Do So By Typing /Rules In The Chat Window ");
SendClientMessage(playerid, red, "/Teles To See All Of The Teleports. ");
SendClientMessage(playerid, red, "/Cars To Open The Vehicle Menu. ");
SendClientMessage(playerid, red, "/Anims To See More About Animations. ");
SendClientMessage(playerid, red, "/Cmds To See More About our Commands. ");
SendClientMessage(playerid, red, "/Website If You Would Like To Visit Our Forums. ");
SendClientMessage(playerid, red, "If You Would Like To Talk More Private ");
SendClientMessage(playerid, red, "You Can PM Your Friends With /PM Followed By Their ID or Nickname. ");
return 1;
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/rules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, red, " ~~Rules~~");
SendClientMessage(playerid, red, "Never beg to be an admin! If you would like to be an admin sign up at forums");
SendClientMessage(playerid, red, "Never steal other peoples cars! (Not their wifes either hihi !)");
SendClientMessage(playerid, red, "NEVER deathmatch outside of deathmatch ares, it WILL lead to an kick/bann");
SendClientMessage(playerid, red, "And remember, be nice to people and they will be nice to you! ");
return 1;
}
/*if (strcmp("/anothercommand", cmdtext, true, 10) == 0) // remove the /* in front of if and replace: anothercommand with the command you have. Remove the OnPlayerCommandText you have for that command and add the script using "{" and "}" than it should compile fine :)*/
return 0;
}


