Alexey19
Дебютант
Как сделать чтобы команда /aopen была доступна только админам?
P.S
Это если что фильтрскрипт
P.S
Это если что фильтрскрипт
Код:
#include <a_samp>
#pragma tabsize 0
#define COLOR_YELLOW 0xFFFF00AA
#define FILTERSCRIPT
forward GateCloseLS();
#if defined FILTERSCRIPT
new pdgateLS;
public OnFilterScriptInit()
{
pdgateLS = CreateObject(8150,1765.8884277,2722.5102539,10.8782997,0.00000000,0.00000000,0.00000000);
print("\n--------------------------------------");
print(" PDGate FS BY Splitx provided by www.samp-rus.com");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/aopen", true)==0)
{
MoveObject(pdgateLS,1765.8884277,2722.5102539,4.1283001899719,4.5);
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetTimer("GateCloseLS", 5000, 0);
SendClientMessage(playerid, COLOR_YELLOW,"");
return 1;
}
return 0;
}
public GateCloseLS()
{
MoveObject(pdgateLS,1765.8884277,2722.5102539,10.8782997,4.5);
}
