30.12.2013, 01:51
Код:
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); } } } } } }
OK guys everything is ok here but when it says You were cought on speed cam it sends the message to the player ok i want is that someone can make something like when a person get's caught on speed cam the message should send to Cops i tried SendCopMessage but i don't think it works i mean it doesn't it stills show's to the player i also want that it should say the players name example
Garfield_Ram has been caught on a speed cam this message should be send to cops using SendCopMessage or some how i need the speed cam script fast please
(like %s Has been caught on a speec camera his name should be writen in %s and send to cop radio or some how it should also show to cops btw it is a rp server where i am gonna add it so tell me the script)
Thank you