gate moving problem
#7

Ok, try this...

#include <a_samp>
#define TIMER 5000 //Insert You Timer for Close the Gate :]
#define COLOR_RED 0xAA3333AA

new gateobject;

public OnFilterScriptInit()
{
gateobject = CreateObject(980,1101.7249755859, -1741.2767333984, 15.273958206177, 0, 0, 90);
MoveObject(gateobject,1101.7249755859, -1741.2767333984, 15.273958206177, 0.97);
FuncSound();
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/buyticket", cmdtext, true, 10) == 0)
{
if (GetPlayerMoney(playerid) <= 50) return SendClientMessage(playerid, 0xFFFFFF, "You are to far to pay. ");
GivePlayerMoney(playerid, -25); MoveObject(gateobject, 1101.7249755859, -1752.2767333984, 15.273958206177, 0.97);
SendClientMessage(playerid,COLOR_RED,"You have just paid and the gate is open ");
SetTimer("FuncCL", TIMER, 0);
return 1;
}
return 0;
}

forward FuncSound();
public FuncSound()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
// Your Function Sound
}
}

forward FuncCL();
public FuncCL()
{
MoveObject(gateobject,1101.7249755859, -1752.2767333984, 15.273958206177, 0.97); //Insert You Float For Close The Gate
}
Reply


Messages In This Thread
gate moving problem - by Tom1412 - 24.10.2010, 17:49
Re: gate moving problem - by Grim_ - 24.10.2010, 18:12
Re: gate moving problem - by Bogdanovic - 24.10.2010, 18:12
Re: gate moving problem - by Tom1412 - 24.10.2010, 19:06
Re: gate moving problem - by Bogdanovic - 24.10.2010, 19:13
Re: gate moving problem - by Tom1412 - 24.10.2010, 19:31
Re: gate moving problem - by Bogdanovic - 24.10.2010, 19:38
Re: gate moving problem - by Scripter123 - 24.10.2010, 19:49
Re: gate moving problem - by Tom1412 - 24.10.2010, 20:00

Forum Jump:


Users browsing this thread: 2 Guest(s)