Jump to content

[MAP][LSPD]Cu Bariera si poarta


Guest Bogdan

Recommended Posts

Sub

#include <a_samp>
new lspdgate; new bariera; Sub
public OnGameModeInit()
punem bariera = CreateObject(968, 1544.674683, -1630.826538, 12.992054, 0.0000, 269.7592, 269.7592); lspdgate = CreateObject(971, 1588.84, -1637.89, 13.18, 0.00, 0.00, 0.10); edit:
CreateObject(1500, 1584.11, -1638.01, 12.48, 0.00, 0.00, 180.00); 
CreateObject(994, 1544.67, -1623.67, 12.48, 0.00, 0.00, 90.00); 
CreateObject(994, 1544.65, -1638.99, 12.64, 0.00, 0.00, 90.00); 
pentru un exterior complet:D Sub
public OnPlayerCommandText(playerid, cmdtext[])
punem
//=========================================================================================================
	if(strcmp(cmd, "/barierop", true) == 0)
	{
	if(IsPlayerConnected(playerid))
	{
	SetObjectRot(bariera, 0, 0, 270);
	SendClientMessage(playerid, COLOR_SISTEM, "Police Gate is being Opened");
	}
}
	if(strcmp(cmd, "/bariercl", true) == 0)
	{
	if(IsPlayerConnected(playerid))
	{
	SetObjectRot(bariera, 0, 270, 270);
	SendClientMessage(playerid, COLOR_SISTEM, "Police Gate is being Closed");
	}

}
//=========================================================================================================
	if(strcmp(cmd, "/lspdop", true) == 0)
	{
	if(IsPlayerConnected(playerid))
	{
	MoveObject(lspdgate,1588.84, -1637.89, 7.18,2);
	SendClientMessage(playerid, COLOR_SISTEM, "Police Gate is being Opened");
	}
	return 1;
}
	if(strcmp(cmd, "/lspdcl", true) == 0)
	{
	if(IsPlayerConnected(playerid))
	{
	MoveObject(lspdgate,1588.84, -1637.89, 13.18,2);
	SendClientMessage(playerid, COLOR_SISTEM, "Police Gate is being Closed");
	}
	return 1;
}

Sper sa va fie de folos...

Data viitoare voi adauga PlayerToPoint, ca portile sa se deschida numai cand esti langa ele sau se mai pot modifica pentru faction sau w/e

Link to comment
Share on other sites

  • 4 weeks later...
Guest SilenT

CreateObject(1500, 1584.11, -1638.01, 12.48, 0.00, 0.00, 180.00);

CreateObject(994, 1544.67, -1623.67, 12.48, 0.00, 0.00, 90.00);

CreateObject(994, 1544.65, -1638.99, 12.64, 0.00, 0.00, 90.00);

si asta unde punem ?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.