Help me please.
#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


Messages In This Thread
Help me please. - by Samara - 15.10.2009, 17:37
Re: Help me please. - by Pawno_Master - 15.10.2009, 18:06
Re: Help me please. - by Peter_Corneile - 15.10.2009, 20:21
Re: Help me please. - by Samara - 16.10.2009, 10:17
Re: Help me please. - by Hiitch - 16.10.2009, 10:30
Re: Help me please. - by Samara - 16.10.2009, 10:34
Re: Help me please. - by Mowgli - 16.10.2009, 11:09
Re: Help me please. - by Samara - 16.10.2009, 11:39
Re: Help me please. - by Paul_Landers - 16.10.2009, 13:26
Re: Help me please. - by Samara - 16.10.2009, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)