Код:
#include <a_samp>
new elevator;
new elevator2;
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Army Lift by kintama");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Army Lift by kintama");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
elevator = CreateObject(986, 2495.8405761719, 2772.4428710938, 17.055965423584, 89.32373046875, 358.01501464844, 271.94494628906);
elevator2 = CreateObject(986, 2499.08203125, 2772.4350585938, 17.055965423584, 89.32373046875, 358.01501464844, 92.578247070313);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/e1down", cmdtext, true))
{
//cops onlys
{
MoveObject(elevator, 2241.456542 , 2483.041748 , 9.322299,3.0);
SendClientMessage(playerid, 0xFF8000FF, "Elevator going down");
}
{
SendClientMessage(playerid,0x00FF00FF,"You must be in the Army to use this command.");
}
return 1;
}
if(!strcmp("/e1up", cmdtext, true))
{
//cops onlys
{
MoveObject(elevator, 2242.447265 , 2483.080322 , 37.681751,3.0);
SendClientMessage(playerid, 0xFF8000FF, "Elevator going up");
}
{
SendClientMessage(playerid,0x00FF00FF,"You must be in the Army to use this command.");
return 1;
}
if(!strcmp("/e1down", cmdtext, true))
{
//cops onlys
{
MoveObject(elevator2, 2241.456542 , 2483.041748 , 9.322299,3.0);
SendClientMessage(playerid, 0xFF8000FF, "Elevator going down");
}
{
SendClientMessage(playerid,0x00FF00FF,"You must be in the Army to use this command.");
}
return 1;
}
if(!strcmp("/e1up", cmdtext, true))
{
//cops onlys
{
MoveObject(elevator2, 2242.447265 , 2483.080322 , 37.681751,3.0);
SendClientMessage(playerid, 0xFF8000FF, "Elevator going up");
}
{
SendClientMessage(playerid,0x00FF00FF,"You must be in the Army to use this command.");
}
return 1;
}