Fast question regarding admin
#1

For example i have the underneath line,

And i would like to enable that admins(all admins) can also open the gate (im just asking for one gate so i know how to use it on the other gates too.)

Thanks in Advance!

PHP код:
    if (!strcmp("/lsmsopen"cmdtext))
    {
        if(
PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 3)
          {
                if(
IsPlayerInRangeOfPoint(playerid10.01128.59997559, -1740.900024419.50000000))
                 {
                    
MoveObject(Gate1128.59997559, -1740.900024419.500000001);   //fType 1
                    
SendClientMessage(playerid0xEF994300"Opening Gate.");
                     return 
1;
                }
            }
        } 
Reply
#2

PHP код:
    if (!strcmp("/lsmsopen"cmdtext))
    {
        if(
PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == || PlayerInfo[playerid][pAdmin] >= 1// If this doesnt work create another if statement
          
{
                if(
IsPlayerInRangeOfPoint(playerid10.01128.59997559, -1740.900024419.50000000))
                 {
                    
MoveObject(Gate1128.59997559, -1740.900024419.500000001);   //fType 1
                    
SendClientMessage(playerid0xEF994300"Opening Gate.");
                     return 
1;
                }
            }
        } 
[/QUOTE]
Reply
#3

I get errors idd,

Maybe a rly stupid question, but what do you mean with create another if statement(i know what) but where and how

EDIT: Hold on i think it works..

THANKS IF IT WORKS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)