Help me!
#9

Quote:
Originally Posted by Virtual1ty
Here:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/kill", true))
    {
        SetPlayerHealth(playerid, 0);
        return 1;
    }
    if(!strcmp(cmdtext, "/bar", true))
    {
      if(IsPlayerInRangeOfPoint(playerid, 1.5, 497.4167,-75.4108,998.7578))
      {
            ShowPlayerDialog(playerid, 50, DIALOG_STYLE_LIST, "Чo`о ?a*лa`a*i`?", "Нa`i"e`o`оe^ ($1)\nI"e`во ($2)\nВe`но ($3)\nN~e`a~a`?a` ($5)", "E^уi"e`o`ь", "Уйo`e`");
        }
        else
        {
          //your if-not code here ( SendClientMessage(playerid, color, "
..."); )
        }
        return 1;
     }
    if(!strcmp(cmdtext, "
/bar", true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.5, 498.9911,-20.6630,1000.6797))
        {
            ShowPlayerDialog(playerid, 50, DIALOG_STYLE_LIST, "
Чo`о ?a*лa`a*i`?", "Нa`i"e`o`оe^ ($1)\nI"e`во ($2)\nВe`но ($3)\nN~e`a~a`?a` ($5)", "E^уi"e`o`ь", "Уйo`e`");
        }
        else
        {
          //your if-not code here ( SendClientMessage(playerid, color, "..."); )
        }
        return 1;
     }
    if(!strcmp(cmdtext, "/drugs", true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.5, 323.7905,1120.0074,1083.8828))
        {
            ShowPlayerDialog(playerid, 51, DIALOG_STYLE_LIST, "Чo`о будa*i` i"?e`нe`i`a`o`ь?", "O`?a`вe^a` ($50)\nE^оe^n~ ($200)", "E^уi"e`o`ь", "Уйo`e`");
        }
        else
        {
          //your if-not code here ( SendClientMessage(playerid, color, "..."); )
        }
        return 1;
    }
    if(!strcmp(cmdtext, "/tabletka", true))
  {
      SetPlayerWeather(playerid, 10);
      SetPlayerDrunkLevel(playerid, 2000);
      SendClientMessage(playerid, 0x00C0C0AA, "O`a*бa* i"оi`оa~лa` o`a`блa*o`e^a`...");
      return 1;
    }
  if(!strcmp(cmdtext, "
/heal", true))
  {
    if(IsPlayerInRangeOfPoint(playerid, 1.5, 2033.8627,-1404.4601,17.2588))
    {
          SetPlayerHealth(playerid, 100);
          SendClientMessage(playerid, 0x00C0C0AA, "
O`a*бy" вu^лa*чe`лe`.");
        }
        else
        {
          //your if-not code here ( SendClientMessage(playerid, color, "..."); )
        }
        return 1;
  }
    return 0;
}
Thnx i will try it!
Reply


Messages In This Thread
Help me! - by Nexotronix - 31.01.2010, 08:54
Re: Help me! - by mansonh - 31.01.2010, 08:56
Re: Help me! - by JakesRolePlay - 31.01.2010, 09:00
Re: Help me! - by Nexotronix - 31.01.2010, 09:07
Re: Help me! - by JakesRolePlay - 31.01.2010, 09:14
Re: Help me! - by Nexotronix - 31.01.2010, 09:22
Re: Help me! - by JakesRolePlay - 31.01.2010, 09:24
Re: Help me! - by Virtual1ty - 31.01.2010, 09:27
Re: Help me! - by Nexotronix - 31.01.2010, 09:35
Re: Help me! - by Nexotronix - 31.01.2010, 09:39

Forum Jump:


Users browsing this thread: 1 Guest(s)