gate for only 1 turf
#1

hi,
i got an gate but i want that only the cops and the one what turfed the cops place can open that gate and close does any know ?

Код:
   if (strcmp(cmdtext, "/pdgatop", true)==0)
   {
   MoveObject(PDGATE,1546.113769 , -1621.810913 , 11.709331,3.5);//close
   MoveObject(PDGATE,1546.113769 , -1621.810913 , 5.644468,3.5);//open
   SendClientMessage(playerid, COLOR_YELLOW,"Welcome to LSPD, Gate Open");
   return 1;
   }

		if (strcmp(cmdtext, "/pdgatcl", true)==0)
   {
   MoveObject(PDGATE,1546.113769 , -1621.810913 , 5.644468,3.5);//open
   MoveObject(PDGATE,1546.113769 , -1621.810913 , 11.709331,3.5);//close
   SendClientMessage(playerid, COLOR_YELLOW,"Gate Close");
   return 1;
   }
that is the code ??
any know how to make that only them can open that gate ?
i know how to get the gate for cops but i want to know how to make the gate only for the turf what owned that place?
Reply
#2

You open & close it in same time.
Do it like
pawn Код:
if (!strcmp(cmdtext, "/pdgatop", true))
    {
    MoveObject(PDGATE,1546.113769 , -1621.810913 , 11.709331,3.5);
   SendClientMessage(playerid, COLOR_YELLOW,"Welcome to LSPD, Gate Open");
   return 1;
    }

if (!strcmp(cmdtext, "/pdgatcl", true))
    {
    MoveObject(PDGATE,1546.113769 , -1621.810913 , 11.709331,3.5);
   SendClientMessage(playerid, COLOR_YELLOW,"Gate Close");
   return 1;
    }
Reply
#3

[EDIT]Just seen your post. Ask in FS topic you got it mate.
Reply
#4

but i want the turf that colored place on the map that can you get but if you get it you can then open that gate ??
?
and i got added this:
http://forum.sa-mp.com/index.php?topic=76667.0
and i got turf wars and if you turf that police place then you can open the gate ?? but how ? can i do that ?
Reply
#5

ARE HERE ANY GOOD SCRIPTERS FOR ME TO HELP ME ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)