Jump to content

xLinix96

Membru
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Level of knowledge
    Mediu

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

xLinix96's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Salut, asta este prima mea postare pe aceasta comunitate, astazi vreau sa va arat cum sa creati o comanda /flymode, stiu ca este o comanda foarte simpla, dar sunt unii incepatori care nu stiu sa o faca. Pentru inceput aveti nevoie de un include. #include <fly> Il gasiti aici: http://www.solidfiles.com/d/289d6c8fdf/ Acum vom face comanda: CMD:fly(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te comenctezi."); // aici verificam daca esti conectat if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1) // aici punem nivelul de admin necesar pentru a folosii comanda. { new sendername[30],string[256]; if(flymode[playerid] == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); // aici obtinem numele adminuui. togfind[playerid] = 0; flymode[playerid] = 1; format(string,sizeof(string),"{DFF230}%s este acum in modul fly-mode.", sendername); ABroadCast(COLOR_ORANGE,string,1); InitFly(playerid); StartFly(playerid); SetPlayerHealthEx(playerid, 10000000); // aici setam hp-ul. } else { GetPlayerName(playerid, sendername, sizeof(sendername)); // iar de aici oprim fly-ul. togfind[playerid] = 1; flymode[playerid] = 0; format(string,sizeof(string),"{F89AD6}Ai oprit fly-mode-ul", sendername); SCM(playerid, COLOR_GREEN, string); StopFly(playerid); SetPlayerHealthEx(playerid, 100); // } } else return SendClientMessage(playerid, COLOR_ERROR, AdminOnly); } return 1; } Sper ca v-am ajutat, nu este cine site ce sistem.
×
×
  • 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.