28.06.2011, 20:44
PHP код:
forward Fechar();
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_HANDBRAKE)
{
if(IsPlayerInRangeOfPoint(playerid, 10, X, Y, Z))
{
MoveObject(object, X, Y, Z);
SetTimer("Fechar", 10000, false);
}
}
return 1;
}
public Fechar()
return MoveObject(object, X, Y, Z);