[Include] [INC] Awa-Gates - Simple Gate System
#1

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

Reply
#2

not bad man i like it keep it up
Reply
#3

Screens?
Reply
#4

Quote:
Originally Posted by Niixie
Screens?
Wtf, Screens for an Include?
Reply
#5

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.
Reply
#6

yep its very cool
Reply
#7

Updated to v0.2 - Hopefully fixed the bug
Reply
#8

Hmmm... Look's cool Keep it up ^^
________
CB400N
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)