Scripting Admin System
#1

I'm making script for admin on-duty. Someone can help this??

When Admin duty,it will announce [Admin %!& is now on admin duty] and [Admin %!% is now off admin duty]

Admin skin id is 217 and has minigun with infinite bullet. Health and armor also will be infinite. If possible, put at above of armor and health bar with this [Admin On-Duty Do Not Attack] so players will now about it.

Someone can make it for me?? PM me if it done.

Thank you.
Reply
#2

EDITED
Reply
#3

EDITED.
Reply
#4

Thanks for help but i get this error..how to fix??

C:\Users\User\Desktop\Script\Test.pwn(6) : fatal error 100: cannot read from file: "zcmd"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#5

Download zcmd : http://www.solidfiles.com/d/879d1213...6d464e90c8cf9/
And goto your server folder then pawno folder then includes and paste the file and try to re-compile
Reply
#6

Look like it's getting worst :

C:\Users\User\Desktop\SAMP Server\gamemodes\Test.pwn( : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP Server\gamemodes\Test.pwn(44) : error 017: undefined symbol "PlayerInfo"
C:\Users\User\Desktop\SAMP Server\gamemodes\Test.pwn(44) : warning 215: expression has no effect
C:\Users\User\Desktop\SAMP Server\gamemodes\Test.pwn(44) : error 001: expected token: ";", but found "]"
C:\Users\User\Desktop\SAMP Server\gamemodes\Test.pwn(44) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\SAMP Server\gamemodes\Test.pwn(44) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#7

You don't have player save stats or what admin system you use ?
Reply
#8

I'm create a new pawn file and copy all script that you're give just now..and those error appear after that.
Reply
#9

Aha , ok i will script this for you give me 5 mins!
Reply
#10

You just go in game type /rcon login [password] to use this command for now
Add this code anywhere in your script
pawn Код:
stock GetPlayerNameEx(playerid)
{
    new Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
    return Name;
}
Main command :
pawn Код:
CMD:dutyon(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000AA,"You are not adminstrator to use godmode");
    SetPlayerHealth(playerid,999999);
    SetPlayerArmour(playerid,999999);
    SetPlayerSkin(playerid,217);
    new Float:x,Float:y,Float:z;
    new Text3D:label = Create3DTextLabel("Admin On Duty!", 0xED0909FF,x,y,z, 40.0, 0, 0);
    Attach3DTextLabelToPlayer(label,playerid,0.0, 0.0, 0.7);
    GivePlayerWeapon(playerid,38,99999);
    new string[126];
    format(string,sizeof(string),"{FF0000}Adminstrator %s in now in duty!",GetPlayerNameEx(playerid));
    SendClientMessageToAll(-1,string);
    return 1;
}
CMD:dutyoff(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000AA,"You are not adminstrator to turn off godmode");
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    new string[126];
    format(string,sizeof(string),"{FF0000}Adminstrator %s off duty!",GetPlayerNameEx(playerid));
    SendClientMessageToAll(-1,string);
    return 1;
}

Now you won't get any errors
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)