gate for only 1 turf - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: gate for only 1 turf (
/showthread.php?tid=64548)
gate for only 1 turf -
dennis-jippi - 05.02.2009
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?
Re: gate for only 1 turf -
MenaceX^ - 05.02.2009
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;
}
Re: gate for only 1 turf -
Auto-Sized - 05.02.2009
[EDIT]Just seen your post. Ask in FS topic you got it mate.
Re: gate for only 1 turf -
dennis-jippi - 05.02.2009
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 ?
Re: gate for only 1 turf -
dennis-jippi - 05.02.2009
ARE HERE ANY GOOD SCRIPTERS FOR ME TO HELP ME

?