[FilterScript] **[FS]Speeding control **by Antironix
#17

Gr8 Script how ever how can u change it to only get certain teams and every time u drive past a camera it will say it twice and there for do twice the fine or in my cars wanted level this is what i have what am i doing wrong ??
Code:
if(objectcreated!=maxobject)
    {
    CreateObject(modelid, xx, yy, zz, 0.0, 0.0, 10);
    objectcreated++;
    }
    if((distance1[playerid])>speed)
    {
        if(IsPlayerInCircle(playerid, xx, yy, radius) && GetPlayerState(playerid)== PLAYER_STATE_DRIVER)


	{
	if(gTeam[playerid] == TEAM_COP)
	{
	format(str,sizeof(str), "You were driving faster than %d Mph Your Speed Was (%d) Mph",speed, distance1[playerid]);
 	SendClientMessage(playerid, COLOR_YELLOW, str);
						}
            else
						{
	          if(gTeam[playerid] == TEAM_Civilian){
						SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1);
						SetPlayerColor(playerid, COLOR_ORANGE);
            format(str,sizeof(str), "You were driving faster than %d Mph Your Speed Was (%d) Mph And You Are Now Wanted For Speeding",speed, distance1[playerid]);
            SendClientMessage(playerid, COLOR_YELLOW, str);
            GetPlayerName(playerid,name,sizeof(name));
            format(str,sizeof(str), "%s(ID:%d) Was driving faster than %d Mph At The Speed Of (%d) Mph And Is Now Wanted For Speeding", name, giveplayerid, speed, distance1[playerid]);
            SendClientMessageToAll(COLOR_LIGHTBLUE, str);

}
           }


        }
    }

}
any ideas how to make it only work for civillians?
Reply


Messages In This Thread
**[FS]Speeding control **by Antironix - by Antironix - 24.10.2007, 14:01
Re: **[FS]Speedometer + Speeding limit **by Antironix - by [FTG]Little_G - 24.10.2007, 14:20
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Djrasim - 24.10.2007, 14:21
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Gehaktbal - 24.10.2007, 14:29
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Antironix - 24.10.2007, 15:35
Re: **[FS]Speedometer + Speeding limit **by Antironix - by yom - 24.10.2007, 16:22
Re: **[FS]Speedometer + Speeding limit **by Antironix - by BeckzyBoi - 24.10.2007, 16:29
**[FS]Speedometer + Speeding limit **by Antironix - by Maikel - 24.10.2007, 16:31
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Alejandro - 24.10.2007, 16:48
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Djrasim - 24.10.2007, 18:14
Re: **[FS]Speedometer + Speeding limit **by Antironix - by nate660 - 25.10.2007, 12:57
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Richi_Makaveli - 25.10.2007, 15:17
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Antironix - 25.10.2007, 15:56
Re: **[FS]Speedometer + Speeding limit **by Antironix - by [PHX]Randy - 25.10.2007, 16:04
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Antironix - 26.10.2007, 13:37
Re: **[FS]Speeding control **by Antironix - by mikster1 - 26.10.2007, 17:32
Re: **[FS]Speeding control **by Antironix - by Beaver07 - 01.11.2007, 15:45
Re: **[FS]Speeding control **by Antironix - by Antironix - 01.11.2007, 17:40
Re: **[FS]Speeding control **by Antironix - by Antironix - 02.11.2007, 21:06
Re: **[FS]Speeding control **by Antironix - by polgast - 15.11.2007, 16:57
Re: **[FS]Speeding control **by Antironix - by Francis[French] - 16.11.2007, 13:23
Re: **[FS]Speeding control **by Antironix - by diamondo25 - 02.02.2008, 19:18
Re: **[FS]Speeding control **by Antironix - by Francis[French] - 02.02.2008, 21:47
Re: **[FS]Speeding control **by Antironix - by Spyro55 - 03.02.2008, 01:15
Re: **[FS]Speeding control **by Antironix - by cmg4life - 03.02.2008, 04:15
Re: **[FS]Speeding control **by Antironix - by [nl]daplayer - 03.02.2008, 07:27
Re: **[FS]Speeding control **by Antironix - by LethaL - 03.02.2008, 09:10
Re: **[FS]Speeding control **by Antironix - by kevin433 - 21.02.2008, 20:52
Re: **[FS]Speeding control **by Antironix - by Numhaken - 21.02.2008, 22:52
Re: **[FS]Speeding control **by Antironix - by Antironix - 22.02.2008, 11:41
Re: **[FS]Speeding control **by Antironix - by Antironix - 24.11.2008, 14:15
Re: **[FS]Speeding control **by Antironix - by BioFreeze - 24.11.2008, 14:26
Re: **[FS]Speeding control **by Antironix - by Dmac_91 - 24.11.2008, 15:53
Re: **[FS]Speeding control **by Antironix - by Antironix - 24.11.2008, 17:37
Re: **[FS]Speeding control **by Antironix - by moggeh - 02.12.2008, 20:52
Re: **[FS]Speeding control **by Antironix - by MueldersX - 06.12.2008, 20:16
Re: **[FS]Speeding control **by Antironix - by gernes - 06.12.2008, 20:26
Re: **[FS]Speeding control **by Antironix - by Hip-hop - 10.03.2010, 17:33
Re: **[FS]Speeding control **by Antironix - by Brian_Furious - 10.07.2010, 23:14

Forum Jump:


Users browsing this thread: 7 Guest(s)