Here a gate
#1

Код:
#include <a_samp>
forward Csukodjbe();
new kapu;
new timer;

public OnFilterScriptInit()
{
	kapu = CreateObject(969, 2464.829346, -1663.277588, 12.473392, 0.0000, 0.0000, 90.0001);
	return 1;
}

public OnFilterScriptExit()
{
KillTimer(timer);
return 1;
}



public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/open", cmdtext, true, 10) == 0)
	{
	MoveObject(kapu, 2464.812744, -1654.830444, 12.472679, 3.5);
	timer = SetTimerEx("Csukodjbe",5000,0,"i",playerid);
	return 1;
	}
	return 0;
}

public Csukodjbe()
{
MoveObject(kapu, 2464.829346, -1663.277588, 12.473392, 3.5);
}
This a gate what the getoba is is
Reply
#2

Change:
pawn Код:
kapu = SetTimerEx("Csukodjbe",5000,0,"i",playerid);
to:
pawn Код:
timer = SetTimerEx("Csukodjbe",5000,0,"i",playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)