Zzale Posted December 8, 2012 Report Share Posted December 8, 2012 Problema : Cum pot sa fac porti sa se deschida doar la membrii factiunii? Nu daca stie Gigel comanda hop deschide poarta.. Va rog ajutati-ma . <a href="http://www.game-state.com/93.119.26.26:7777/"><img src="http://www.game-state.com/93.119.26.26:7777/350x20_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.com" style="border-style: none;" /></a> Link to comment Share on other sites More sharing options...
BuBu Posted December 21, 2012 Report Share Posted December 21, 2012 Trebuie sa faci acces-ul prin playerinfo, ti-am aratat un exemplu cum are acces doar factiunea cu numarul 1 if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { Link to comment Share on other sites More sharing options...
Mafia. Posted December 26, 2012 Report Share Posted December 26, 2012 if(!strcmp(cmdtext, "/pdgate", true)) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { if (IsPlayerInRangeOfPoint(playerid, 15,1588.3129,-1638.4406,13.3761)) { MoveObject(pdgate ,1589.09997559,-1638.00000000,7.80000038,3.5); SetTimerEx("pdgateclose",3 * 1000,false,"d",playerid); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s a deschis poarta la Police Departament garaj *", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_GREY,"*Nu te aflii in preajma portii !"); return 1; } } return 1; }Uite un MODEL complet . Sper sa te ajute PS:Modifici tu comanda daca vrei alta. Link to comment Share on other sites More sharing options...
Gireada Posted December 27, 2012 Report Share Posted December 27, 2012 http://www.sa-mp.ro/forum/index.php?topic=9789.msg58716#msg58716 uite aici un tutorial. Sper sa te fii ajutat. Link to comment Share on other sites More sharing options...
Question
Zzale
Problema : Cum pot sa fac porti sa se deschida doar la membrii factiunii? Nu daca stie Gigel comanda hop deschide poarta.. Va rog ajutati-ma .
<a href="http://www.game-state.com/93.119.26.26:7777/"><img src="http://www.game-state.com/93.119.26.26:7777/350x20_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.com" style="border-style: none;" /></a>
Link to comment
Share on other sites
3 answers to this question
Recommended Posts