E ovako ja sam napravio jednu pokretnu kapiju to ovako izgleda:
forward GateClose33(playerid);
new nekavrata;
public GateClose33(playerid)
{
MoveObject(nekavrata,2183.3310546875, -1785.9689941406, 15.136346817017, 5.0);
return 1;
}
nekavrata = CreateDynamicObject(980, 2183.3310546875, -1785.9689941406, 15.136346817017, 0, 0, 0);
if(!strcmp(cmdtext, "/otvori", true))
{
if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
{
if (IsPlayerInRangeOfPoint(playerid,15,2183.4089,-1783.9808,13.3631))
{
MoveObject(nekavrata,2183.3310546875, -1785.96875, 9.6363468170166,5.0);
SetTimer("GateClose", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"Ograda je otvorena i zatvorit ce se za 7 sekundi.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima daljinac i otvara ogradu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else { SendClientMessage(playerid, COLOR_GREY,"Odrediste je predaleko.");
}
}
else return SendClientMessage(playerid, COLOR_GREY,"Nemate daljinac.");
return 1;
}
i sad ja udjem ig i ono kad ukucam /otvori ono pise sve otvaras vrata itd a ono vrata stoje
evo i vrata
CreateObject(980, 2183.3310546875, -1785.9689941406, 15.136346817017, 0, 0, 0);
CreateObject(980, 2183.3310546875, -1785.96875, 9.6363468170166, 0, 0, 0);
Druga su kad se otvore...
dali moze neko da mi pomogne ili slozi neku drugu cmd i to ?
Normalno kad si naprvio DynamicObject Onda ide MoveDynamicObject a ako oces MoveObject Onda ide i CreateObject
Znaci samo ovo napravi, replaceaj
nekavrata = CreateDynamicObject(980, 2183.3310546875, -1785.9689941406, 15.136346817017, 0, 0, 0);
sa
nekavrata = CreateObject(980, 2183.3310546875, -1785.9689941406, 15.136346817017, 0, 0, 0);
â"¢â"žâ"¡â"¨ â"¢â"£â"ž â"â"˜â"¢â"â"œ â"¡â""â"šâ"â"ž â"™â" â"¢â"â"œ â"£â"ž â"¥â""© â"¤â"¡â"â""â"˜â"ž â" â"¢â"â"" â"œâ"žâ"©â"":
â"›â"žÂ©â"š
Mozda prevedes? Posto ja vidim ovo:
â"¢â"žâ"¡â"¨ â"¢â"£â"ž â"â"˜â"¢â"â"œ â"¡â""â"šâ"â"ž â"™â" â"¢â"â"œ â"£â"ž â"¥â""© â"¤â"¡â"â""â"˜â"ž â" â"¢â"â"" â"œâ"žâ"©â"":