help please!! who knows do not spamm if you dont know
#1

please help somebody
i need command for open gates on SAGC gamemode by euro
you need to be pFaction=1,
open with /gsfo and close with /gsfc
how to do that please hel!!!
this is object(door):

gsfvrata= CreateObject(985, 2306.175293, -1648.608154, 15.336965, 0.0000, 0.0000, 180.0000);
Reply
#2

Use if() in a command

Example:
pawn Код:
if(pFaction == 1)
{
MoveObject(...);
}
Reply
#3

i need whole code for that because im stupid =)
Reply
#4

Ask in the script request thread then.
Reply
#5

pawn Код:
if(strcmp("/open",cmdtext,true,5) == 0)
{
if(pFaction == 1)
{
MoveObject(gsfvrata,X,Y,Z,speed);

}
else
{
SendClientMessage(playerid,COLOR,"You are not a team member");
}
return 1;
}
Reply
#6

pawn Код:
if(strcmp("/open",cmdtext,true,5) == 0)
{
    if(pFaction == 1)
        return MoveObject(gsfvrata,X,Y,Z,speed);
    return SendClientMessage(playerid,COLOR,"You are not a team member");
}
Much shorter
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)