gate wont close
#1

hi,

i have got the gate to open but how do i get it to close, i have tried but with no luck.

PHP код:
#include <a_samp>
#define COLOR_RED 0xAA3333AA
new gateobject;
public 
OnFilterScriptInit()
{
    
gateobject CreateObject(980,1101.7249755859, -1741.276733398415.2739582061770090);
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/buyticket"cmdtexttrue10) == 0)
    {
    if(
GetPlayerMoney(playerid) <= 50) return SendClientMessage(playerid0xFFFFFF"You are to far to pay.");
    
GivePlayerMoney(playerid, -25);    MoveObject(gateobject,1101.7249755859, -1752.276733398415.2739582061775.0);
    
SendClientMessage(playerid,COLOR_RED,"You have just paid and the gate is open");
    return 
1;
    }
    return 
0;

Reply


Messages In This Thread
gate wont close - by Tom1412 - 24.10.2010, 13:00
Re: gate wont close - by JaTochNietDan - 24.10.2010, 13:05
Re: gate wont close - by TheXIII - 24.10.2010, 13:07
Re: gate wont close - by Tom1412 - 24.10.2010, 13:26

Forum Jump:


Users browsing this thread: 1 Guest(s)