SA-MP Forums Archive
Help me please. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me please. (/showthread.php?tid=102468)



Help me please. - Samara - 15.10.2009

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;
}



Re: Help me please. - Pawno_Master - 15.10.2009

what's exactly your problem?


Re: Help me please. - Peter_Corneile - 15.10.2009

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 ..


Re: Help me please. - Samara - 16.10.2009

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


Re: Help me please. - Hiitch - 16.10.2009

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?


Re: Help me please. - Samara - 16.10.2009

I ask how do I reduce it to insert mode?


Re: Help me please. - Mowgli - 16.10.2009

Is english your first langauge?


Re: Help me please. - Samara - 16.10.2009

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


Re: Help me please. - Paul_Landers - 16.10.2009

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...
Скажи, что за проблема у тебя с воротами?=_)


Re: Help me please. - Samara - 16.10.2009

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