06.04.2010, 08:23
Hi i want to make that only the cops team can open LSPD gates this is my filter script :
The guy who wants to open the gate must have rank 1 . So i want to make the gates that it will only open if you have rank 1
P.S : oh and another problem ! The //lspd objects spawn imediatly i mean if you hit that object there are many more of them in the same place , so you can destroy the fence because there are 100 or more in the same place . How to fix that please help !
The guy who wants to open the gate must have rank 1 . So i want to make the gates that it will only open if you have rank 1
P.S : oh and another problem ! The //lspd objects spawn imediatly i mean if you hit that object there are many more of them in the same place , so you can destroy the fence because there are 100 or more in the same place . How to fix that please help !
Код:
#include <a_samp>
#pragma tabsize 0
new lpgate;
#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit ()
{
lpgate = CreateObject(975,1548.571,-1627.423,14.058,0.0,0.0,90.000);
return 1;
}
public OnPlayerCommandText (playerid, cmdtext[])
{
if (strcmp(cmdtext, "/lspdopen", true) == 0)
{
MoveObject(lpgate, 1548.571,-1634.002,14.058,3);
SendClientMessage(playerid, COLOR_YELLOW,"Welcome to LSPD!");
return 1;
}
if (strcmp(cmdtext, "/lspdclose", true) == 0)
{
MoveObject(lpgate, 1548.571,-1627.423,14.058,3);
SendClientMessage(playerid, COLOR_YELLOW,"Come back later.");
return 1;
}
//LSPD Base
CreateObject(1411,1548.751,-1620.444,14.156,0.0,0.0,-90.000);
CreateObject(1411,1548.879,-1634.387,13.992,0.0,0.0,-90.000);
return 0;
}

