Police only...
#6

pawn Code:
new Cars[Police]1;
new Cars[Police]2;
new Cars[Police]3;
new Cars[Police]4;
new Cars[Police]5;
new Cars[Police]6;
new Cars[Police]7;
new Cars[Police]8;
new Cars[Police]9;
new Cars[Police]10;
new Cars[Police]11;
new Cars[Police]12;
pawn Code:
Cars[Police]1 = CreateVehicle(596,1601.06665039,-1692.17382812,5.46062469,91.29089355,-1,-1,15); //Police Car (LSPD)
    Cars[Police]2 = CreateVehicle(596,1601.45349121,-1687.62915039,5.46062469,89.30590820,-1,-1,15); //Police Car (LSPD)
    Cars[Police]3 = CreateVehicle(596,1601.17285156,-1684.14086914,5.46062469,89.30236816,-1,-1,15); //Police Car (LSPD)
    Cars[Police]4 = CreateVehicle(427,1530.66174316,-1644.98913574,6.13862514,179.47515869,-1,1,15); //Enforcer
    Cars[Police]5 = CreateVehicle(427,1534.38708496,-1645.19458008,6.13862514,179.47265625,-1,-1,15); //Enforcer
    Cars[Police]6 = CreateVehicle(601,1526.62500000,-1646.62597656,5.82083368,0.00000000,-1,-1,15); //S.W.A.T. Van
    Cars[Police]7 = CreateVehicle(599,1538.96801758,-1646.31713867,6.27575159,0.00000000,-1,1,15); //Police Ranger
    Cars[Police]8 = CreateVehicle(490,1543.90966797,-1651.23962402,6.21075153,89.32434082,-1,-1,15); //FBI Rancher
    Cars[Police]9 = CreateVehicle(411,1544.61230469,-1655.26037598,5.69062471,89.32434082,1,1,15); //Infernus
    Cars[Police]10 = CreateVehicle(541,1544.73278809,-1659.18371582,5.59062481,89.33935547,1,1,15); //Bullet
    Cars[Police]11 = CreateVehicle(415,1544.80761719,-1663.22778320,5.69014645,89.74975586,1,1,15); //Cheetah
    Cars[Police]12 = CreateVehicle(490,1544.37280273,-1668.03149414,6.21075153,89.32434082,-1,-1,15); //FBI Rancher
And under OnPlayerStateChange add this.
pawn Code:
if (newstate == PLAYER_STATE_DRIVER) {
new getthecar = GetPlayerVehicleID(playerid);
if (getthecar == Car[Police]1 || Car[Police]2 || Car[Police]3 || Car[Police]4 || Car[Police]5 || Car[Police]6 || Car[Police]7 || Car[Police]8 || Car[Police]9 || Car[Police]10 || Car[Police]11 || Car[Police]12) {
if(GetPlayerSkin(playerid) != Skins[Police]) return SendClientMessage(playerid, COLOR,"You dont have the keys for this vehicle!), RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x33FF33AA,"
You have entered a Police vehicle");
}
Reply


Messages In This Thread
Police only... - by Luis- - 06.08.2010, 21:06
Re: Police only... - by KennethRandall - 06.08.2010, 21:14
Re: Police only... - by JaTochNietDan - 06.08.2010, 21:16
Re: Police only... - by Luis- - 06.08.2010, 21:35
Re: Police only... - by Kar - 06.08.2010, 21:47
Re: Police only... - by Jacks - 07.08.2010, 03:27

Forum Jump:


Users browsing this thread: 4 Guest(s)