Na most csináltam egyet, de az a baj hogy nem akar becsukódni
#include <a_samp>
new parkolo
public OnGameModeInit()
{
parkolo = CreateObject(986, 355.725647, -1786.533691, 4.688835, 0.000000, 0.000000, 0.000000);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, \"/parkolonyit\", true))
{
if(PlayerInfo[playerid][pLeader] == 0 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 11)
{
if (PlayerToPoint(15, playerid,355.725647, -1786.533691, 4.688835 ))
{
MoveObject(parkolo,355.725647, -1786.533691, -1.261174, 1.;
SetTimer(\"GateClose6\", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,\"Kapu kinyitva 7mp mulva záródik.\");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), \"* %s elovette a távirányítót és kinyitotta a kaput.\", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PlayerPlaySound(playerid, 1153, -488.8514,-567.4728,23.9570);
}
else
{
SendClientMessage(playerid, COLOR_GREY,\"Destination is too far.\");
}
}
return 1;
}