SA-MP Forums Archive
Car Cops - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Car Cops (/showthread.php?tid=97273)



Car Cops - monster010 - 13.09.2009

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


Re: Car Cops - Doppeyy - 13.09.2009

The id of the police car maybey ?

/Artix


Re: Car Cops - Ov3rl0rd - 13.09.2009

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


Re: Car Cops - dice7 - 13.09.2009

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


Re: Car Cops - monster010 - 14.09.2009

Tanks The Best Site