Police pullover
#1

Hey guys, i made a code that should tell the closest player to pull over, however it doesn't work, can you guys see any errors?
PHP код:
CMD:pu(playeridparams[])
{
    new 
vehicleid;
    
vehicleid GetClosestVehiclePolice(playerid);
    for (new 
checkwantedpullcheckwantedpull MAX_PLAYERScheckwantedpull++)
    if(
gTeam[playerid] == POLICE)
    {
    if(
IsPlayerInVehicle(checkwantedpullvehicleid) && GetPlayerWantedLevel(checkwantedpull) >= 1)
     {
        
GameTextForPlayer(checkwantedpull,"~b~ POLICE REQUEST~n~~r~PULL OVER",6000,5);
        
SendClientMessage(playeridCOLOR_BLUE"Pull over request sent.");
     }
    }
    return 
1;

It uses a stock which detects the nearest vehicle.
Reply


Messages In This Thread
Police pullover - by Stu1 - 29.10.2012, 01:31
Re: Police pullover - by Edward d - 29.10.2012, 01:55
Re: Police pullover - by Eric - 29.10.2012, 05:35
Re: Police pullover - by guitarmandanny - 29.10.2012, 06:12
Re: Police pullover - by Stu1 - 29.10.2012, 15:57
Re: Police pullover - by Edward d - 29.10.2012, 23:16
Re: Police pullover - by Eric - 30.10.2012, 00:52
Re : Police pullover - by lelemaster - 30.10.2012, 02:09
Re: Re : Police pullover - by Eric - 30.10.2012, 04:03
Re : Police pullover - by lelemaster - 30.10.2012, 20:51

Forum Jump:


Users browsing this thread: 1 Guest(s)