SF Cops and Robbers
Would you like to react to this message? Create an account in a few clicks or log in to continue.


SERVER IP: soda-gaming.ddns.net:7777!!!
 
HomePortalRegisterLog in
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» [UN] STAFF TEAM
/aduty cmd for luxadmin EmptySun Jul 01, 2012 2:24 am by Admin

» New Fourm :) :)
/aduty cmd for luxadmin EmptySat Jun 30, 2012 11:05 am by Admin

» [ADMIN APPLY]Mjaka_ukraina Administrator apply.
/aduty cmd for luxadmin EmptyThu Jun 28, 2012 11:57 pm by Admin

» REMOVE AIRFORCE
/aduty cmd for luxadmin EmptyThu Jun 28, 2012 5:24 am by Mjaka_ukraina

» APLLY FORMAT!
/aduty cmd for luxadmin EmptyThu Jun 28, 2012 2:24 am by Mjaka_ukraina

» Howdy Partner. Hello. Peace :D
/aduty cmd for luxadmin EmptyThu Jun 28, 2012 1:56 am by Acapfz Lzzy

» admin applycation
/aduty cmd for luxadmin EmptyThu Jun 28, 2012 1:00 am by Admin

» Reporting Nikkolai
/aduty cmd for luxadmin EmptyThu Jun 28, 2012 12:58 am by Admin

» ANNOUNCMENT
/aduty cmd for luxadmin EmptyThu Jun 28, 2012 12:50 am by Admin

» [ELITE Player Apply]Mjaka application
/aduty cmd for luxadmin EmptyThu Jun 28, 2012 12:49 am by Admin

Use this widget to translate the forum to your language.


 

 /aduty cmd for luxadmin

Go down 
AuthorMessage
Admin
Server Owner
Server Owner
Admin


Posts : 113
Join date : 2011-08-02
Age : 26
Location : Slovenia

/aduty cmd for luxadmin Empty
PostSubject: /aduty cmd for luxadmin   /aduty cmd for luxadmin EmptyWed Oct 05, 2011 8:14 am

Where to put this in luxadmin?
http://forum.sa-mp.com/showthread.php?t=285537&page=2
Code:
if(strcmp(cmd, "/aduty", true) == 0)    {        if(PlayerInfo[playerid][pAdmin] > 0)        {            new msgstring[150];            if(PlayerInfo[playerid][pAdminDuty] == 0)            {                format(PlayerInfo[playerid][pNormalName], 255, "%s", GetName(playerid));                //SetPlayerName(playerid, PlayerInfo[playerid][pAdminName]);                format(msgstring, sizeof(string), "{01A601}** Administrator %s is now on admin duty. (/askq for assistance) **",sendername);                SendClientMessageToAll(COLOR_WHITE, msgstring);                SetPVarInt(playerid, "LastSkin", GetPlayerSkin(playerid));                SetPlayerSkin(playerid, 240);                PlayerInfo[playerid][pAdminDuty] = 1;                SetPlayerHealth(playerid, 9999);                SetPlayerArmour(playerid, 9999);                            }            else            {                format(msgstring, sizeof(string), "{FF0000}** Administrator %s is now off admin duty. **",sendername);                SendClientMessageToAll(COLOR_WHITE, msgstring);                //SetPlayerName(playerid, PlayerInfo[playerid][pNormalName]);                SetPlayerSkin(playerid, GetPVarInt(playerid, "LastSkin"));                SetPlayerHealth(playerid, 100);                SetPlayerArmour(playerid, 0);                PlayerInfo[playerid][pAdminDuty] = 0;            }        }        return 1;    }





Last edited by Admin on Thu Oct 06, 2011 6:35 am; edited 1 time in total
Back to top Go down
https://lv-cnr.gid3an.com
Guest
Guest




/aduty cmd for luxadmin Empty
PostSubject: Re: /aduty cmd for luxadmin   /aduty cmd for luxadmin EmptyThu Oct 06, 2011 5:12 am

Admin wrote:
Where to put this in luxadmin?
http://forum.sa-mp.com/showthread.php?t=285537&page=2

Take this command and add it in the end of the script. Make sure it's not under a public.

Code:
CMD:aduty(playerid,params[])
{

    if(PInfo[playerid][Logged] ==1)
    {
      if(PInfo[playerid][Level] < 2)
      {
            new string[128];
            new aname[MAX_PLAYER_NAME];
            GetPlayerName(playerid,aname,sizeof(aname));
            format(string,sizeof(string),"Administrator %s is now on Admin Duty. Do not attack him",aname,playerid);
            SendClientMessage(playerid, COLOR_RED, string); // you forgot this !! thats all...
            admin[playerid] = Create3DTextLabel("ADMIN ON DUTY[DONT ATTACK]",red,30.0,40.0,50.0,40.0,0);
            Attach3DTextLabelToPlayer(admin[playerid], playerid, 0.0, 0.0, 0.7);
            GivePlayerWeapon(playerid,38);
            SetPlayerArmour(playerid,999999);
            SetPlayerHealth(playerid,999999);
            return 1;
            } else return SendClientMessage(playerid,LIGHTBLUE,"You need to be level 2 to use this command");
      }else return SendClientMessage(playerid,LIGHTBLUE,"You need to be logged in to use commands");

}
Back to top Go down
Admin
Server Owner
Server Owner
Admin


Posts : 113
Join date : 2011-08-02
Age : 26
Location : Slovenia

/aduty cmd for luxadmin Empty
PostSubject: Re: /aduty cmd for luxadmin   /aduty cmd for luxadmin EmptyThu Oct 06, 2011 6:15 am

ok compile is ok but cmd /aduty is not working Sad.
Back to top Go down
https://lv-cnr.gid3an.com
Guest
Guest




/aduty cmd for luxadmin Empty
PostSubject: Re: /aduty cmd for luxadmin   /aduty cmd for luxadmin EmptyThu Oct 06, 2011 6:54 am

Are the other cmds working?
Back to top Go down
Admin
Server Owner
Server Owner
Admin


Posts : 113
Join date : 2011-08-02
Age : 26
Location : Slovenia

/aduty cmd for luxadmin Empty
PostSubject: Re: /aduty cmd for luxadmin   /aduty cmd for luxadmin EmptyThu Oct 06, 2011 9:06 am

accept me on msn Wink
Back to top Go down
https://lv-cnr.gid3an.com
Guest
Guest




/aduty cmd for luxadmin Empty
PostSubject: Re: /aduty cmd for luxadmin   /aduty cmd for luxadmin EmptyThu Oct 06, 2011 9:01 pm

I didn't get a request!
gimme ur msn i will add ya!
Back to top Go down
Guest
Guest




/aduty cmd for luxadmin Empty
PostSubject: Re: /aduty cmd for luxadmin   /aduty cmd for luxadmin EmptyFri Oct 07, 2011 1:44 am

Devil we have now COD Server too xD
Back to top Go down
Guest
Guest




/aduty cmd for luxadmin Empty
PostSubject: Re: /aduty cmd for luxadmin   /aduty cmd for luxadmin EmptyFri Oct 07, 2011 9:37 pm

Request sent, email removed for security reasons.
Back to top Go down
Admin
Server Owner
Server Owner
Admin


Posts : 113
Join date : 2011-08-02
Age : 26
Location : Slovenia

/aduty cmd for luxadmin Empty
PostSubject: Re: /aduty cmd for luxadmin   /aduty cmd for luxadmin EmptyFri Oct 07, 2011 10:56 pm

devil i need /aduty with textlabel ╦ŁADMIN ON DUTY DO NOT ATTACK╦Ł
and your color change to purple

and textdraw on main chat and for vip vip tag above his head when he do /vipon or /vipoff
Back to top Go down
https://lv-cnr.gid3an.com
Guest
Guest




/aduty cmd for luxadmin Empty
PostSubject: Re: /aduty cmd for luxadmin   /aduty cmd for luxadmin EmptyFri Oct 07, 2011 11:51 pm

Check ur pms for the code
Back to top Go down
Admin
Server Owner
Server Owner
Admin


Posts : 113
Join date : 2011-08-02
Age : 26
Location : Slovenia

/aduty cmd for luxadmin Empty
PostSubject: Re: /aduty cmd for luxadmin   /aduty cmd for luxadmin EmptySat Oct 08, 2011 12:36 am

i give you my teamviwer check your pms
Back to top Go down
https://lv-cnr.gid3an.com
Guest
Guest




/aduty cmd for luxadmin Empty
PostSubject: Re: /aduty cmd for luxadmin   /aduty cmd for luxadmin EmptySat Oct 08, 2011 3:02 am

Since I added /aduty, the topic is locked!
Back to top Go down
 
/aduty cmd for luxadmin
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
SF Cops and Robbers :: News and Announcements :: News-
Jump to: