Jump to content
  • 0

[GF/RP] cmd


mitza505

Question

unde trebuie sa bag aceasta comanda in FS??

[pawn]if(strcmp(cmd, "/joaca", true) == 0)

{

    Ball = CreateObject(2114, 2782.3027,-2019.0826,13.5547-0.8, 0, 0, 96);

    GetPlayerName(playerid, sendername, sizeof(sendername));

    if(IsPlayerConnected(playerid))

    {

    if(basketDuty == 0)

    {

      format(string, sizeof(string), "Meciu de Basket a inceput! ", sendername);

      SendClientMessageToAll(0xFF7171FF, string);

      format(string, sizeof(string), " %s vs %s");

      SendClientMessageToAll(COLOR_GREEN, string);

      jucator1 = 0;

  jucator2 = 0;

  basketDuty = 1;

      for(new i = 0; i < MAX_PLAYERS; i++)

      {

          basketOn = 1;

      }

      SetTimer("stopbasket", 5000,0);

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, " Basketul este pornit deja !");

    }

  }

  return 1;

}[/pawn]

daca o bag la onplayercommandtext orice comanda folosesc de exe /me imi da acceastsa comanda..

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.