fix system
#1

hello guys,
i have problem with fix system..can someone help me? it doesn't worked

fix system only use by admin/mod only with commands /fix [player id] , when player stuck,weapon bugs or anything else,they may ask an admin/mod to fix them .. when admin/mod use /fix [player id] they will spawn back and dont have any bug .. can someone help me? it doesnt work in my server
Reply
#2

Try this one,
mhm... what I just made for you... it's kinda for RP mode,
if you are not using an RP mode, change the values then:
pLoggedIn...
PlayerInfo[playerid][pAdmin]
pawn Код:
if(strcmp(cmd, "/fix", true) == 0)
{
    new targetid;
    targetid = ReturnUser(tmp);
    if(pLoggedIn[playerid] == 0) { return SendClientMessage(playerid, COLOR_LIGHTRED, "You must log in first!"); }
    if(PlayerInfo[playerid][pAdmin] > 0)
    {
        if(IsPlayerConnected(targetid))
        {
            if(targetid != INVALID_PLAYER_ID)
            {
                new targetid[MAX_PLAYER_NAME], playeridname[MAX_PLAYER_NAME];
                GetPlayerName(targetid, targetidname, sizeof(targetidname));
                GetPlayerName(playerid, playeridname, sizeof(playeridname));
                SpawnPlayer(targetid);
                SendClientMessage(playerid, COLOR_WHITE, "You have just fixed %s",targetidname);
                SendClientMessage(targetid, COLOR_WHITE, "You have been fixed by admin %s",playeridname);
            }
        }
    } else { return SendClientMessage(playerid, COLOR_LIGHTRED, "You are not an admin!"); }
    return 1;
}
Hope it works :]
Reply
#3

yea its work ,thank you very much dude
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)