11.03.2011, 01:11
If I`m not wrong, this is what you mean:
Oh and by the way, don`t use 'return 0;' in commands... use return 1; instead.
pawn Код:
command(pdgate, playerid, params[])
{
#pragma unused params
if(IsPlayerInRangeOfPoint(playerid, 4.0, 1214.19,300.26,19.98))
{
SetObjectRot(gate1, 1.68,26.76,71.03);
SetObjectPos(gate1, 1214.19,300.26,19.901);
SetTimer("close2", 5000, 0);
SendClientMessage(playerid, RED, "Paramedic gate, is closing in 5 seconds.");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 4.0, newx, newy, newz)) // newx, newy, newz - are the other gate coords.
{
//bla bla
return 1;
}
return 1;
}