27.02.2017, 05:20
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; }