13.01.2010, 11:05
Current Release: 0.2
Install it to your server like a normal Include(shouldn't need to go to detail)
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:
>>Download
- Awaran
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();
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!");
}
- Awaran