24.10.2010, 11:12
pawn Код:
#include <a_samp>
#define COLOR_RED 0xAA3333AA
new gateobject;
public OnFilterScriptInit() // u have misstake this !!!
{
gateobject = CreateObject(980,1101.7249755859, -1741.2767333984, 15.273958206177, 0, 0, 90);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/pay", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) <= 250) return SendClientMessage(playerid, 0xFFFFFF, "You are to far to pay.");
GivePlayerMoney(playerid, -250);
MoveObject(gateobject,1101.724609375,-1741.2763671875,15.273958206177, 5.0); // change this coords cause its the same like ( CreateObject ) ...
SendClientMessage(playerid,COLOR_RED,"You have just paid and the gate is open");
return 1;
}
return 0;
}