Little Problem
#1

Код:
public SpeedCamsTimer(){
        new String[256], Float:tmpX, Float:tmpY;
        for(new i = 0; i < MAX_PLAYERS; i++){
                new State = GetPlayerState(i);
                if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && GetPlayerSpeed(i, true) > 0 && State == PLAYER_STATE_DRIVER){
                        for(new p = 0; p < MAX_SPEEDCAMS; p++){
                                tmpX = SpeedCams[p][scx];
                                tmpY = SpeedCams[p][scy];
                                GetDirectedXY(2, p, tmpX, tmpY, 5.0, 1);
                                if(IsPlayerInRangeOfPoint(i, 20.0, tmpX, tmpY, SpeedCams[p][scz])){
                                        new CSpeed;
                                        CSpeed = GetPlayerSpeed(i, true);
                                        if(CSpeed > SpeedCams[p][scmaxspeed] && SpeedCamPlayer[i] == 0){
                                                SpeedCamPlayer[i] = 1;
												TextDrawShowForPlayer(i, radarTD[i]);
												SetTimerEx("RemoveRadarTD",1000, false, "i", i);
                                                format(String, sizeof(String), "You were cought on speed cam(%d/%d) ((Pay system in make))", CSpeed, SpeedCams[p][scmaxspeed]);
                                                SendClientMessage(i, COLOR_RED, String);
                                                SetTimerEx("SpeedCamCheck", 5000, false, "d", i);
                                        }
                                }
                        }
                }
        }
}
Hello..How can i make on that code,when a player is cought by radar to sent a message to police with car details and speed details..Thanks
Reply


Messages In This Thread
Little Problem - by OnY - 23.12.2013, 17:14
Re: Little Problem - by R4mpage - 23.12.2013, 17:24
Re: Little Problem - by OnY - 23.12.2013, 17:26
Re: Little Problem - by R4mpage - 23.12.2013, 17:28
Re: Little Problem - by Patrick - 23.12.2013, 17:30
Re: Little Problem - by SilentSoul - 23.12.2013, 17:30
Re: Little Problem - by OnY - 23.12.2013, 17:40
Re: Little Problem - by SilentSoul - 23.12.2013, 17:47
Re: Little Problem - by OnY - 23.12.2013, 18:08
Re: Little Problem - by SilentSoul - 23.12.2013, 18:14

Forum Jump:


Users browsing this thread: 6 Guest(s)