Latest topics | » [UN] STAFF TEAMSun Jul 01, 2012 2:24 am by Admin» New Fourm :) :)Sat Jun 30, 2012 11:05 am by Admin» [ADMIN APPLY]Mjaka_ukraina Administrator apply.Thu Jun 28, 2012 11:57 pm by Admin» REMOVE AIRFORCEThu Jun 28, 2012 5:24 am by Mjaka_ukraina» APLLY FORMAT!Thu Jun 28, 2012 2:24 am by Mjaka_ukraina» Howdy Partner. Hello. Peace :DThu Jun 28, 2012 1:56 am by Acapfz Lzzy » admin applycationThu Jun 28, 2012 1:00 am by Admin» Reporting NikkolaiThu Jun 28, 2012 12:58 am by Admin» ANNOUNCMENTThu Jun 28, 2012 12:50 am by Admin» [ELITE Player Apply]Mjaka applicationThu Jun 28, 2012 12:49 am by Admin |
Use this widget to translate the forum to your language. |
|
|
| /aduty cmd for luxadmin | |
| | Author | Message |
---|
Admin Server Owner
Posts : 113 Join date : 2011-08-02 Age : 29 Location : Slovenia
| Subject: /aduty cmd for luxadmin Wed 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 | |
| | | Guest Guest
| Subject: Re: /aduty cmd for luxadmin Thu 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");
} |
| | | Admin Server Owner
Posts : 113 Join date : 2011-08-02 Age : 29 Location : Slovenia
| Subject: Re: /aduty cmd for luxadmin Thu Oct 06, 2011 6:15 am | |
| ok compile is ok but cmd /aduty is not working . | |
| | | Guest Guest
| Subject: Re: /aduty cmd for luxadmin Thu Oct 06, 2011 6:54 am | |
| Are the other cmds working? |
| | | Admin Server Owner
Posts : 113 Join date : 2011-08-02 Age : 29 Location : Slovenia
| Subject: Re: /aduty cmd for luxadmin Thu Oct 06, 2011 9:06 am | |
| accept me on msn | |
| | | Guest Guest
| Subject: Re: /aduty cmd for luxadmin Thu Oct 06, 2011 9:01 pm | |
| I didn't get a request! gimme ur msn i will add ya! |
| | | Guest Guest
| Subject: Re: /aduty cmd for luxadmin Fri Oct 07, 2011 1:44 am | |
| Devil we have now COD Server too xD |
| | | Guest Guest
| Subject: Re: /aduty cmd for luxadmin Fri Oct 07, 2011 9:37 pm | |
| Request sent, email removed for security reasons. |
| | | Admin Server Owner
Posts : 113 Join date : 2011-08-02 Age : 29 Location : Slovenia
| Subject: Re: /aduty cmd for luxadmin Fri 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 | |
| | | Guest Guest
| Subject: Re: /aduty cmd for luxadmin Fri Oct 07, 2011 11:51 pm | |
| Check ur pms for the code |
| | | Admin Server Owner
Posts : 113 Join date : 2011-08-02 Age : 29 Location : Slovenia
| Subject: Re: /aduty cmd for luxadmin Sat Oct 08, 2011 12:36 am | |
| i give you my teamviwer check your pms | |
| | | Guest Guest
| Subject: Re: /aduty cmd for luxadmin Sat Oct 08, 2011 3:02 am | |
| Since I added /aduty, the topic is locked! |
| | | | /aduty cmd for luxadmin | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |