07.04.2009, 12:49
You've mis typed/copied several of the pieces of code... try these:
pawn Код:
public gateclosetimer();
{
MoveObject(frazzgate, 1534.98,-1451.48,15.00, 2.00);
}
pawn Код:
if(strcmp(cmd, "/opengate", true) == 0)
{
if(GetPlayerMoney(playerid) > 250)
{
GivePlayerMoney(playerid,-250);
MoveObject(frazzgate,1534.98,-1451.48,9.70,2.00); // Put your cords in here
SendClientMessage(playerid, 0xFF0000AA, "You have 5 seconds to get in.");
SetTimer("gateclosetimer", 5000, false);
}
return 1;
}