24.12.2012, 11:17
pawn Код:
new portaomafia;
pawn Код:
CreateObject(987,2254.30004883,-2618.50000000,8.00000000,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (1)
pawn Код:
mafiagate = CreateObject(987,2254.30004883,-2618.50000000,8.00000000,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (1)
pawn Код:
forward timergate();
public timergate()
{
MoveObject(mafiagate,2254.30004883,-2618.50000000,8.00000000,2);
}
pawn Код:
if (strcmp(cmd, "/opengate", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2,2254.30004883,-2618.50000000,8.00000000))
{
MoveObject(mafiagate,2254.30004883,-2618.50000000,2.5, 2);
SetTimer("timergate", 15000, 0);
SendClientMessage(playerid, COLOR_GROVE,"You've opened the gate of the Mafia's HQ, it'll close in 15 seconds.");
return 1;
}