SA-MP Forums Archive
[Ajuda] ]Admin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] ]Admin (/showthread.php?tid=315813)



[Ajuda] ]Admin - kinhobryant - 04.02.2012

Gostaria de saber pq toda vc q eu coloco admin no meu player, quando eu entro no gta aparece voce nao e mais um admin, aki esta o codigo


Код:
if (AdmCheck(playerid) == 0 && PlayerInfo[playerid][pAdmin] > 0)//teste adminfo
		{
			PlayerInfo[playerid][pAdmin] = 0;
			SendClientMessage(playerid, COLOR_YELLOW, "Vocк nгo й mais um Admin.");
		}
		else if(PlayerInfo[playerid][pAdmin] > 0)
		{
			format(string2, sizeof(string2), "[[-BBS-]]: Vocк Logou Como Admin Nivel %d.",PlayerInfo[playerid][pAdmin]);
			SendClientMessage(playerid, COLOR_AZULBB,string2);
		}
		SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
		if(gTeam[playerid] == 0)
		{
			gTeam[playerid] = 3;
		}
		else
		{



Re: [Ajuda] ]Admin - Lucas_Alemao - 04.02.2012

tenta assim:

pawn Код:
if (AdmCheck(playerid) == 0 && PlayerInfo[playerid][pAdmin] > 0)//teste adminfo
        {
            format(string2, sizeof(string2), "[[-BBS-]]: Vocк Logou Como Admin Nivel %d.",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_AZULBB,string2);
        }
        SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
        if(gTeam[playerid] == 0)
        {
            gTeam[playerid] = 3;
        }
        else
        {



Re: [Ajuda] ]Admin - kinhobryant - 04.02.2012

Vaaleu manooow , Pegou Obrigado