Car Cops
#1

How do I define the police cars for this comand?

Код:
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;
}
Thanks a lot
Reply
#2

The id of the police car maybey ?

/Artix
Reply
#3

To define cop cars you need to create a new public

so first find the classids for all your cop cars, than lemme know when you have done that
Reply
#4

http://forum.sa-mp.com/index.php?topic=119185.0
Reply
#5

Tanks The Best Site
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)