01.11.2007, 15:45
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 ??
any ideas how to make it only work for civillians?
![Cheesy](images/smilies/biggrin.png)
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); } } } } }