13.09.2009, 14:48
How do I define the police cars for this comand?
Thanks a lot
Код:
forward IsPlayerInACopCar();
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if ((newkeys==KEY_CROUCH )&&(IsPlayerInIsPlayerInACopCar(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)) { SetObjectRot(bariera, 0, 0, 270); SetTimer("closelsdgate",2000,0); } return 1; } forward closelsdgate(); public closelsdgate() { SetObjectRot(bariera, 0, 270, 270); return 1; }