10.10.2011, 00:36
pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if(newkeys == KEY_HANDBRAKE)
{
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
if(IsPlayerInRangeOfPoint(playerid,10,1544.8994140625,-1623.69921875,15.199999809265) && IsPlayerInAnyVehicle(playerid))
{
MoveDynamicObject(Gate[0],1545.1999511719,-1633.1999511719,15.199999809265,2.0);
SetTimer("Aberto", 7000, false);
}
}
}
return 1;
}