Jump to content
  • 0

Problema urgent!!


Question

Posted

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>

3 answers to this question

Recommended Posts

Posted

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)
{

Posted

   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.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.