04.04.2009, 12:05
Well i tryed to use OnPlayerKeyStateChange.
Heres my code
I tryed to use TAB to open and close the gate, but i can only open it, cant close it, anyone knows why?
Waiting an aswer
Thanks
Shellegg
Heres my code
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 2)
{
if (newkeys & KEY_FIRE)
{
MoveObject(modoor, 351.7448,165.5032,1026.3500, 3.5000);//open
}
else if (newkeys & KEY_FIRE)
{
MoveObject(modoor, 353.2448,165.5032,1026.3500, 3.5000);//close
}
}
return 1;
}
I tryed to use TAB to open and close the gate, but i can only open it, cant close it, anyone knows why?
Waiting an aswer
Thanks
Shellegg