02.10.2012, 19:34
SetTimerEx("gateclose",10000,false,"i",playerid); to
SetTimer("gateclose",10000,false);
If you want to send a message to nearby players, you can still do this after GateOpen = 0;
SetTimer("gateclose",10000,false);
pawn Код:
public gateclose(playerid)
{
MoveObject(LSPDGate, 1540.59, -1627.57, 14.95, 2.0);
GateOpen = 0;
}
pawn Код:
for(new i=0;i<GetMaxPlayers();i++)
{
if(IsPlayerInRangeOfPoint(i, 5.0, 1540.59, -1627.57, 14.95))
{
SendClientMessage(i, COLOR_LIGHTGREEN, "The gate is now closing!");
}
}