03.08.2012, 11:24
lool, primeiro defines:
Depois troca:
por
pawn Code:
new portaomafia;
pawn Code:
CreateObject(987,2254.30004883,-2618.50000000,8.00000000,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (1)
pawn Code:
portaomafia = CreateObject(987,2254.30004883,-2618.50000000,8.00000000,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (1)
pawn Code:
forward timerportao();
public timerportao()
{
MoveObject(portaomafia,2254.30004883,-2618.50000000,8.00000000,2);
}
pawn Code:
if (strcmp(cmd, "/abrirportao", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2,2254.30004883,-2618.50000000,8.00000000))
{
MoveObject(portaomafia,2254.30004883,-2618.50000000,2.5, 2);
SetTimer("timerportao", 15000, 0);
SendClientMessage(playerid, COLOR_GROVE,"Abriu o portгo das docas, irб fechar dentro de 15 segundos.");
return 1;
}