1 or 2 CMDS in same script. HELP.
#2

Better yet, let me post the entire thing!

pawn Код:
#include <a_samp>
#include <a_players>

#define FILTERSCRIPT

public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp(cmdtext, "/helpinfo", true) == 0)
  {
    // Send a message to everyone.
    SendClientMessageToAll(0xDEEE20FF, "This is just like a RP drift server.");
    SendClientMessageToAll(0xDEEE20FF, "You pick a car and drift.");
    SendClientMessageToAll(0xDEEE20FF, "No teleports.");
    SendClientMessageToAll(0xDEEE20FF, "Aight?.");
    SendClientMessageToAll(0xDEEE20FF, "If you want night, type /night.");
    SendClientMessageToAll(0xDEEE20FF, "Respect admins, Teleports might come when i got time.");
 
   return 1;
  }

  if (strcmp(cmdtext, "/cmds", true) == 0)
  {
    // Send a message to everyone.
    SendClientMessageToAll(0xDEEE20FF, "TIME CMDS: /night /day ");
    SendClientMessageToAll(0xDEEE20FF, "DRIFT CMDS: /drift1-19");
    SendClientMessageToAll(0xDEEE20FF, "OTHER CMDS: /vfix /vflip /v color (ID)(ID).");
 
   return 1;
  }

  return 0;
}
The indentations are screwed, but that should work!

NOTE: For the record, you had too many {}'s
Reply


Messages In This Thread
1 or 2 CMDS in same script. HELP. - by Simmeey - 15.04.2009, 21:28
Re: 1 or 2 CMDS in same script. HELP. - by Weirdosport - 15.04.2009, 21:33
Re: 1 or 2 CMDS in same script. HELP. - by Simmeey - 15.04.2009, 21:35
Re: 1 or 2 CMDS in same script. HELP. - by Weirdosport - 15.04.2009, 21:49
Re: 1 or 2 CMDS in same script. HELP. - by Simmeey - 15.04.2009, 21:51

Forum Jump:


Users browsing this thread: 1 Guest(s)