Warning tag mismatch, but what is wrong?
#2

pawn Code:
new Text3D:playertextid[MAX_PLAYERS]; // This is how the symbol should look like.

CMD:dutymodeon(playerid, params[])
{
    if(IsPlayerLuxAdmin(playerid))
    {
        new string[128];
        new pname[24];
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos( playerid, X, Y, Z );
        GetPlayerName(playerid, pname, sizeof(pname));
        playertextid[playerid] = Create3DTextLabel("Admin On Duty\n-!!- You cant kill this person! -!!-", 0xFF2800FF, 0, 0, 0, 50, 0, 1);
        Attach3DTextLabelToPlayer(playertextid[playerid], playerid, 0.0, 0.0, 0.7);
        SetPlayerHealth(playerid, 99999);
        format(string, sizeof(string), "[ADMIN] Admin %s Is now on Duty mode!", pname);
        SendClientMessageToAll(COLOR_RED, string);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "[ERROR] {00FC15}You need to be admin!");
    }
    return 1;
}
CMD:dutymodeoff(playerid, params[])
{
    if(IsPlayerLuxAdmin(playerid))
    {
        Delete3DTextLabel(playertextid[playerid]);
        SetPlayerHealth(playerid, 99999);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "[ERROR] {00FC15}You need to be admin!");
    }
    return 1;
}
Reply


Messages In This Thread
Warning tag mismatch, but what is wrong? - by Penait1 - 28.08.2011, 12:29
Re: Warning tag mismatch, but what is wrong? - by Cameltoe - 28.08.2011, 12:35
Re: Warning tag mismatch, but what is wrong? - by Penait1 - 28.08.2011, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)