Jump to content

Incadrare LuxAdmin in Gamemode

Recommended Posts

Nu este neaparat sa-l bagi..Daca vrei de exemplu  sa bagi in Gamemode o comanda care vrei sa o poata folosii doar admini,adaugi asta la inceputul gm-ului:



#include "LuxAdmin.pwn"



#define SC SendClientMessage
stock RektPlayer(playerid)
      return SetPlayerHealth(playerid,0.0);
    if(PLAYER_MAIN[playerid][Coins]<1000) return SC(playerid,-1,"You can't rekt yourself with this amount of coins!");
else return RektPlayer(playerid); }

Sper ca te-am ajutat!


PS: Gandeste-te ca e server-ul tau,deci trebuie sa fii capabil sa-ti rezolvi problemele singur!Daca nici macar  sa bagi un Filterscript intr-un Gamemode  nu ai idee,esti vaisamar de tine.

Edited by Ping_gooty
Link to comment
Share on other sites

Da nu vreau asa eu vreau sa nu mai folosesc LuxAdmin ... sa fie doar Gm simplu ... fara filescript LuxAdmin

​Poti face si cum a zis el, e cam acelasi lucru ... Daca nu, adauga functiile din LuxAdmin in gamemode, dupa cum sunt ele . De exemplu : Ce gasesti la public OnPlayerEnterVehicle adaugi in gamemode la public OnGamemodeEnterVehicle .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.