[TUT]Admin na dužnosti - 3D text label

Započeo Newest Ralph.
4. Jun 2013. Zaključano
1,417
pregleda
7
postova
~William~
4
Enforcer
4. Jun 2013.
Pozdrav,u ovom tutorijalu cu vam pokazat kako napravit admin duznost system..
Udite u PAWNO vaÅ¡ mod i  dodajte  na vrhu
new aDuty = 0;
public OnPlayerConnect(playerid)

adminduznost = 0;
i u OnPlayerDissconect tako.
Pa ćemo početi praviti komandu.
CMD:aduty(playerid) 
{
    if(PlayerInfo >=1)
    {
        if (aDuty == 0) //Za duznost nline
        {
            new string;
            new Float:x,Float:y,Float:z;
            new Text3D:label = Create3DTextLabel("(Admin na duznosti) Ne Ometaj!", -1,x,y,z, 40.0, 0, 0);
            GetPlayerPos(playerid,x,y,z); // traži lokaciju afdm
            SetPlayerHealth(playerid,999999); // god mod
            SetPlayerColor(playerid,-1); // postavlja boju
            SetPlayerSkin(playerid,1); // postavlja skini
            format(string,sizeof(string), "Server | Admin %s je na duznosti.",imeadmina);
            SendClientMessageToAll(-1,string); //
   
            Attach3DTextLabelToPlayer(label,playerid,0.0, 0.0, 0.7);
            aDuty = 1; //
        }
        else if (aDuty == 1) // ako je na duznosti.
        {
            new string;
            new Float:x,Float:y,Float:z;
            new Text3D:label = Create3DTextLabel("(Admin na dužnosti) Ne Ometaj!"-1,x,y,z, 40.0, 0, 0);
            Delete3DTextLabel(label);
            SetPlayerHealth(playerid,150); // potavlja helt
          GivePlayerWeapon(playerid,26,99999); // DAJE ORUZJE
      GivePlayerWeapon(playerid,24,9999); // daje oruzje
      // dodajte vi seb jos oruzja korieteci funkciju giveplayerweapon
         
            format(string,sizeof(string),"Server | ~ Admin %s nije vise na duznosti!",imeadmina);
            SendClientMessageToAll(-1,string);
            SendClientMessage(playerid, -1,"Vi niste na duznost vise.");
            adminduznost = 0; // postavlja admin duznost off
        }
    }
    else
        SendClientMessage(playerid,-1,"Server | ~ Nisi admin ~!"); // Nije Admin
    return 1;
}

I Naravno dodajte na kraj skripte
stock imeadmina
{
    new Name;
    GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
    return Name;
}
Master1
4
Made Man
4. Jun 2013.
ima dosta ne definisanih stvari ...
~William~
4
Enforcer
4. Jun 2013.
Quote from June 4, 2013, 5:48 pm:
ima dosta ne definisanih stvari ...
Sada nema ako ima reci koje?
Woozie1
2
Wheel Man
4. Jun 2013.
probacu ovo ! 😄
Bugi
5
Crime Lord
4. Jun 2013.
Lepse izgleda kad se doda ono iznad glave i i to al dobro posluzice pocetnicima(  😳 )
Deleted User
Obrisan korisnik
4. Jun 2013.
Dobar tutorijal , poslužit će.
~William~
4
Enforcer
4. Jun 2013.
Hvala

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha