How to script this?
#1

if an admin is on DUTY. and they /q to server they will go automatically OFF DUTY.

Admin Duty variable [AdminDuty]
Reply
#2

because im having bugged
Reply
#3

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(AdminDuty[playerid] == 1)
    {
        AdminDuty[playerid] = 0;
    }
    return 1;
}
Reply
#4

The problem you're experiencing will likely be for ANY per-player variable you don't reset when a player connects or disconnects. You're simply experiencing this issue with admin duty simply because playerid 0 is on admin duty and during local testing, you're playerid 0.

Therefore, for every per-player variable, you'll want to set it to 0 (or w/e the default value is) when the player disconnects.
Reply
#5

Nevermind.. i will just change GM
Reply
#6

No downloaded GM I've ever seen resets the variables when a player disconnects. Here's an idea: Make your own GM!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)