[Include] [INC] Awa-Gates - Simple Gate System - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] Awa-Gates - Simple Gate System (
/showthread.php?tid=120803)
[INC] Awa-Gates - Simple Gate System -
pagie1111 - 13.01.2010
Current Release: 0.2
Install it to your server like a normal Include(shouldn't need to go to detail)
pawn Code:
native CreateGate(modelid, Float:close_x, Float:close_y, Float:close_z, Float:open_x, Float:open_y, Float:open_z, Float:rX, Float:rY, Float:rZ);
native FunctionGate(gateid, Float:speed);
native OpenGate(gateid, Float:speed); // not recommended for use
native CloseGate(gateid, Float:speed);// not recommended for use
native IsNearGate(playerid);
native GetMaxGates();
There is one callback "OnPlayerRequestGateOperation(playerid, gateid)"
use
return 0; here to cause the gate not to move, in other words this is a callback for RPG purposes.
Here is an example command:
pawn Code:
if (strcmp("/usegate", cmdtext, true, 10) == 0)
{
new v = IsNearGate(playerid);
if(v > -1)
{
FunctionGate(playerid, v, 3.0);
return 1;
}
else return SendClientMessage(playerid, 0xAAAAAAAA,"Not near any usable gates!");
}
>>Download
- Awaran
Re: [INC] Awa-Gates - Simple Gate System -
SlashPT - 13.01.2010
not bad man i like it keep it up
Re: [INC] Awa-Gates - Simple Gate System -
Niixie - 13.01.2010
Screens?
Re: [INC] Awa-Gates - Simple Gate System -
Mujib - 13.01.2010
Quote:
Originally Posted by Niixie
Screens?
|
Wtf, Screens for an Include?
Re: [INC] Awa-Gates - Simple Gate System -
pagie1111 - 14.01.2010
You will not need screens for an internal working include gate system. This replaces the old way of making a gate with a new way to do it.
Re: [INC] Awa-Gates - Simple Gate System -
SlashPT - 14.01.2010
yep its very cool
Re: [INC] Awa-Gates - Simple Gate System -
pagie1111 - 15.04.2010
Updated to v0.2 - Hopefully fixed the bug
Re: [INC] Awa-Gates - Simple Gate System -
ViruZZzZ_ChiLLL - 15.04.2010
Hmmm... Look's cool

Keep it up ^^
________
CB400N