Jump to content
  • 0

[Problema] Spawn pentru administratori


Dany_Diaz

Question

Buna seara/ziua tuturor !

As dori sa imi exprim o mica problema pe care o am in legatura cu spawn-area administratorilor, intr-un alt loc fata de jucatorii obijnuiti.

Mai jos va voi prezenta incercarile mele de a crea acest spawn, dar care nu a avut succes din pacate.

Tin sa mentionez ca am un sistem de logare pentru administratori care conta in: (Daca playerul are un grad de admin, dupa ce s-a logat cu parola contului, trebuie sa scrie mai apoi /alogin si sa se logheze si cu o parola speciala pentru admini.) Nu stiu daca are sau nu are importanta acest lucru dar l-am mentionat pentru orice eventualitate.

Incercarea 1.

}
if(PlayerLogged[playerid] == 0) return true;
if(PlayerInfo[playerid][pAdminDuty] == 0) 
if(PlayerInfo[playerid][pAdmin] <= 1 || AdminLogged[playerid] == false) return true;
{
    SetPlayerPos(playerid, 1495.5715,-1768.7667,107.1565)
    return 1;
}

Incercarea 2.

}
if(PlayerLogged[playerid] == 0) return true;
if(PlayerInfo[playerid][pAdminDuty] == 0) 
if(PlayerInfo[playerid][pAdmin] <= 1)
{
    SetPlayerPos(playerid, 1495.5715,-1768.7667,107.1565)
    return 1;
}

Incercarea 3.

}
if(PlayerLogged[playerid] == 0) return true;
if(PlayerInfo[playerid][pAdminDuty] == 0) 
{
    SetPlayerPos(playerid, 1495.5715,-1768.7667,107.1565)
    return 1;
}

Incercarea 4.

}
if(PlayerLogged[playerid] == 0) return true;
if(PlayerInfo[playerid][pAdmin] <= 1)
{
    SetPlayerPos(playerid, 1495.5715,-1768.7667,107.1565)
    return 1;
}

Va multumesc anticipat !

________________________________________________________________________________________________________________________

CMD:manele(playerid, params[])
{
    if(PlayerLogged[params[0]] == 0) return;
    SendClientMessage(playerid, COLOR_GREY, ""Ati primit kick. Motiv: Interzis manelistilor"");
    {
        Kick(params[0]);
	return 1;
    }
}


_______________________________________________________________________________________________________________________

 

 

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Da, asta vreau sa fac se intelege din context "Spawn pentru admini".

________________________________________________________________________________________________________________________

CMD:manele(playerid, params[])
{
    if(PlayerLogged[params[0]] == 0) return;
    SendClientMessage(playerid, COLOR_GREY, ""Ati primit kick. Motiv: Interzis manelistilor"");
    {
        Kick(params[0]);
	return 1;
    }
}


_______________________________________________________________________________________________________________________

 

 

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.