Posts: 3,351
Threads: 780
Joined: Jan 2010
Quote:
Originally Posted by .FuneraL.
Try not to set a single time, remove the definition, thus :
pawn Код:
public WantedLvlSpeed() { for(new i; i < MAX_PLAYERS; i++) { if(GetPlayerSpeed(i, true) > 140.0) { new str[150]; new plwl = GetPlayerWantedLevel(i); plwl = GetPlayerWantedLevel(i); SetPlayerWantedLevel(i,plwl +1); format(str,150,"- CRIME - Speed Limit Passed! (140 km/h) - You're going at %d km/h - Wanted Level: %d",GetPlayerSpeed(i,true),plwl); SendClientMessage(i,red,str); return 1; } } return 1; }
|
Nothing.
Quote:
Originally Posted by costel_nistor96
Change
Код:
if(GetPlayerSpeed(i, true) > 140.0 && TEAM_CIV)
to
Код:
if(GetPlayerSpeed(i, true) > 140.0 && FactionVariable[ playerid ] == TEAM_CIV)
Change FactionVariable to the variable where you store player's faction.
|
FactionVariable?I use gTeam.
EDIT: T0pAz thanks,i'll try.