Help with gate :/
#7

pawn Код:
//#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
//#if defined FILTERSCRIPT
#pragma tabsize 0


#define blue 0x0000FFFF
#define orange 0xFF9900AA
new gate;
new clubtower;

public OnFilterScriptInit()
{
    gate = CreateObject(980, 1081.4, -777, 103.6, 0, 0, 358);
    clubtower = CreateObject(3749,1081.3000000,-778.4000200,112.5000000);
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

//#endif

CMD:gateopen(playerid,params[]) {
    MoveObject(gate, 1081.4, -777, 109.6, 2);
    SendClientMessage(playerid,blue,"[GATE]: Welcome Home!");
    return 1;
}

CMD:gateclose(playerid,params[]) {
    MoveObject(gate, 1081.4, -777, 103.6, 0, 0, 358);
    SendClientMessage(playerid,orange,"[GATE]: Goodbye!");
    return 1;
}
This one will work.

@IamPRO - You forgot to mention a 'new' for clubtower object, other than that, your's is working too.
Reply


Messages In This Thread
Help with gate :/ - by Snail - 15.09.2014, 11:51
Re: Help with gate :/ - by IamPRO - 15.09.2014, 11:54
Re: Help with gate :/ - by Snail - 15.09.2014, 12:01
Re: Help with gate :/ - by IamPRO - 15.09.2014, 12:05
Re: Help with gate :/ - by Snail - 15.09.2014, 12:08
Re: Help with gate :/ - by IamPRO - 15.09.2014, 12:08
Re: Help with gate :/ - by LivingLikeYouDo - 15.09.2014, 12:10
Re: Help with gate :/ - by FisherMan - 15.09.2014, 12:40

Forum Jump:


Users browsing this thread: 2 Guest(s)