[DUVIDA] Estou com Alguns PROBLEMAS!
#1

Tipo, qualquer admin do meu server quando ele reloga ele volta sem admin, creio que seja do comando /editaradmin, se nгo for me avisem porfavor:
Codigo do comando /editaradmin:

Код:
if(strcmp(cmd, "/editaradmin", true) == 0)
		{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /editaradmin [ id ] [level(1-5000)]");
				return 1;
			}
			new para1;
			new level;
			para1 = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
            level = strval(tmp);
			if (PlayerInfo[playerid][pAdmin] >= 2000)
			{
			    if(admtrampando[playerid] < 1)
				{
				SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/profadmin)");
				return 1;
				}
			    if(IsPlayerConnected(para1))
			    {
			        if(para1 != INVALID_PLAYER_ID)
			        {
						GetPlayerName(para1, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						PlayerInfo[para1][pAdmin] = level;
						printf("ADMIN CMD: %s has promoted %s to a level %d admin.", sendername, giveplayer, level);
						format(string, sizeof(string), "   Voce foi promovido para level  %d de Admin - Por %s", level, sendername);
						SendClientMessage(para1, COLOR_LIGHTBLUE, string);
						format(string, sizeof(string), "   Voce promoveu o(a) %s Para o level %d de Admin.", giveplayer,level);
						SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
						new year, month,day;
						getdate(year, month, day);
						new hour, minute;
						gettime(hour,minute);
						format(string, sizeof(string), "%s Promoveu %s a adm level %d ( %d/%d/%d - %d:%d)",sendername,giveplayer,level,year, month, day,hour, minute);
						AdminsLog(string);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   Voce nгo esta autorizado a usar este comando!");
			}
		}
		return 1;
	}



Ultimo problema й no BANCO, tipo eu vou la no banco mas nгo tem a porta para entrar, eu ja fui de lado a lado apertando F e digitando /entrar mas nгo vai!
Como crio uma entrada para o banco, mas tipo entrar e ir para um interior.


Desculpe esses bugs, й que quero aprender como arruma e talz e sei que aqui й o lugar pra tirar duvida. Porfavor me ajudem ^^
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)