12.02.2010, 13:16
where to put this script? please give me the link when you are done to put it in Pawno, then upload it on Internet.
Код:
#include <a_samp>
new Firasgate;
public OnFilterScriptInit()
{
Firasgate = CreateObject(980, 320.59393310547, -1188.8247070313, 78.117607116699, 0, 0, 37.714782714844);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/opengatefiras", cmdtext, true, 10) == 0)
{
if(Eg: PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 320.59393310547, -1188.8247070313, 78.117607116699))
{
MoveObject(Firasgate, 314.15914916992, -1193.9382324219, 77.978485107422, 10);
Eg: SendClientMessage(playerid, 0xFFFFFF, "You've opened the Firas gate, please close it");
}
}else{
Eg: SendClientMessage(playerid, 0xFFFFF, "You're not a Firas member!");
}
return 1;
}
if (strcmp("/closegatefiras", cmdtext, true, 10) == 0)
{
if(Eg: PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 320.59393310547, -1188.8247070313, 78.117607116699))
{
MoveObject(Firasgate, 320.59393310547, -1188.8247070313, 78.117607116699, 10);
Eg: SendClientMessage(playerid, 0xFFFFFF, "You've closed the Firas gate");
}
}else{
Eg: SendClientMessage(playerid, 0xFFFFF, "You're not a Firas member!");
}
return 1;
}
return 0;
}


