Help me please.
#1

Help me please.
Edit the code that he inserted in the God Father of modes, this is the gate.

Код:
#include <a_samp>
new gate;
public OnGameModeInit()
{
gate=CreateObject(980,1534.888428,-1451.337280,15.159267,0,0,0);//
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/open1"))
{
MoveObject(gate,1541.781616,-1451.446167,15.160513,2.0);//
return 1;
}

if(!strcmp(cmdtext,"/close1"))
{
MoveObject(gate,1534.888428,-1451.337280,15.159267,2.0);//
return 1;
}
return 0;
}
Reply
#2

what's exactly your problem?
Reply
#3

Quote:
Originally Posted by Samara
Help me please.
Edit the code that he inserted in the God Father of modes, this is the gate.

Код:
#include <a_samp>
new gate;
public OnGameModeInit()
{
gate=CreateObject(980,1534.888428,-1451.337280,15.159267,0,0,0);//
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/open1"))
{
MoveObject(gate,1541.781616,-1451.446167,15.160513,2.0);//
return 1;
}

if(!strcmp(cmdtext,"/close1"))
{
MoveObject(gate,1534.888428,-1451.337280,15.159267,2.0);//
return 1;
}
return 0;
}
'
This code looks like a working one to me ..
Reply
#4

Well I have it in a fashion vstavit.A not that he was filtrskriptom
Reply
#5

Quote:
Originally Posted by Samara
Well I have it in a fashion vstavit.A not that he was filtrskriptom
Do you mean the code is not working properly? Or the code is not working the way you want it to work?
Reply
#6

I ask how do I reduce it to insert mode?
Reply
#7

Is english your first langauge?
Reply
#8

No, I'm from Rossii.Polzuyus interpreter.
Help please fill in the code to insert it into the mod.
Reply
#9

He just want to say that he is from Russia, in the russian net there is no forums like this one(( (he uses the translator...
Скажи, что за проблема у тебя с воротами?=_)
Reply
#10

)))))Как мне их в мод вставить
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)