[Ajuda] verificar nomes
#7

Tenta isto у...

Код:
CMD:irapto(playerid)
{
    if(DOF2_FileExists("Casa/apto.ini"))
    {
		new playername[MAX_PLAYER_NAME], string[128];
    	GetPlayerName(playerid, playername, sizeof(playername));
    	if(!strcmp(playername, DOF2_GetString("Casa/apto.ini", "Dono")))  
    	{
    		if(iCasa[playerid][Chave] == 1) return SendClientMessage(playerid, Vermelho, "Casa trancada");
			SetPlayerPos(playerid, 1786.9034,-1300.2080,33.1250);
    		format(string, sizeof(string), "Bem vindo ao seu apto %s", playername);
    		SendClientMessage(playerid, Verde, string);
    	}
    	else
    	{
        	format(string, sizeof(string), "Para entrar neste apto vocк precisa pedir permissгo para %s", DOF2_GetString("Casa/apto.ini, "Dono"));
        	SendClientMessage(playerid, Vermelho, string);
    	}
	}
	return 1;
}
Reply


Messages In This Thread
verificar nomes - by johntrybescripter - 26.02.2017, 21:01
Re: verificar nomes - by MrJanitor - 26.02.2017, 21:37
Re: verificar nomes - by johntrybescripter - 26.02.2017, 22:49
Re: verificar nomes - by IlanZ - 26.02.2017, 23:00
Re: verificar nomes - by johntrybescripter - 26.02.2017, 23:03
Re: verificar nomes - by IlanZ - 26.02.2017, 23:31
Re: verificar nomes - by JeffSantos2 - 27.02.2017, 05:20
Re: verificar nomes - by johntrybescripter - 27.02.2017, 12:13

Forum Jump:


Users browsing this thread: 2 Guest(s)