30.07.2011, 01:19
ummm... i just do it like this and its working xD
but i need the code for "g" key and i need to make to back on g key the gate... xD
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInRangeOfPoint(playerid, 10, -2811.1684570313, -1524.8093261719, 142.4806060791))
{
if(KEY_FIRE >= 0)// i just see the exsample from OUL post with key_fire
{
MoveObject(vrata, -2811.1684570313,-1524.8093261719,142.4806060791, 2.0);
return 1;
}
}
return 1;
}

