Jump to content
  • 0

-$ /opengate


andrei04072

Question

9 answers to this question

Recommended Posts

[pawn]#include <a_samp>

new Gate;

public OnFilterScriptInit()

{

Gate = CreateObject(968, 50.6020, -1521.1398, 4.9532, 0.0000, 90.0000, -98.0000, 100.0);

return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

if(!strcmp(cmdtext, "/vama", true)){

if(IsPlayerInRangeOfPoint(playerid, 15.0, 50.6020, -1521.1398, 4.9532)){

    GivePlayerMoney(playerid, -10);

SetTimerEx("CloseGate", 8000, false, "i", playerid);

MoveObject(Gate, 50.6020, -1521.1398, 4.9532, 3.0, 0.0, 1.0000, -98.0000);

return SendClientMessage(playerid,  0xFF8200FF, "Ai 8 secunde sa treci,ai grija sa nu te blochezi.");

}

}

return 0;

}

forward CloseGate(playerid);

public CloseGate(playerid)

{

MoveObject(Gate, 50.6020, -1521.1398, 4.9532, 3.0, 0.0000, 90.0000, -98.0000);

SendClientMessage(playerid, 0xFFFFFFFF, "");

}[/pawn]

Link to comment
Share on other sites

Schimba asta

#include <a_samp>
new Gate;

public OnFilterScriptInit()
{
	Gate = CreateObject(968, 50.6020, -1521.1398, 4.9532, 0.0000, 90.0000, -98.0000, 100.0);
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext, "/vama", true)){
		if(IsPlayerInRangeOfPoint(playerid, 15.0, 50.6020, -1521.1398, 4.9532)){
		    GivePlayerMoney(playerid, -10);
			SetTimerEx("CloseGate", 8000, false, "i", playerid);
			MoveObject(Gate, 50.6020, -1521.1398, 4.9532, 3.0, 0.0, 1.0000, -98.0000);
			return SendClientMessage(playerid,  0xFF8200FF, "Ai 8 secunde sa treci,ai grija sa nu te blochezi.");
		}
	}
	return 0;
}

forward CloseGate(playerid);
public CloseGate(playerid)
{
	MoveObject(Gate, 50.6020, -1521.1398, 4.9532, 3.0, 0.0000, 90.0000, -98.0000);
	SendClientMessage(playerid, 0xFFFFFFFF, "");
}
In Asta

#include <a_samp>
new Gate;

public OnFilterScriptInit()
{
	Gate = CreateObject(968, 50.6020, -1521.1398, 4.9532, 0.0000, 90.0000, -98.0000, 100.0);
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext, "/vama", true)){
		if(IsPlayerInRangeOfPoint(playerid, 15.0, 50.6020, -1521.1398, 4.9532)){
                    if(GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid,  0xFF8200FF, "Tu nu ai 10$ pentru a trece !.");
		    GivePlayerMoney(playerid, -10);
			SetTimerEx("CloseGate", 8000, false, "i", playerid);
			MoveObject(Gate, 50.6020, -1521.1398, 4.9532, 3.0, 0.0, 1.0000, -98.0000);
			return SendClientMessage(playerid,  0xFF8200FF, "Ai 8 secunde sa treci,ai grija sa nu te blochezi.");
		}
	}
	return 0;
}

forward CloseGate(playerid);
public CloseGate(playerid)
{
	MoveObject(Gate, 50.6020, -1521.1398, 4.9532, 3.0, 0.0000, 90.0000, -98.0000);
	SendClientMessage(playerid, 0xFFFFFFFF, "");
}

I'm back bitches.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.