11.02.2011, 06:59
Try this:
I'm not sure if that's gonna work but....
pawn Код:
stock AddFlitsPaal(playerid, giveplayerid, modelid, Float:xx, Float:yy, Float:zz, radius, speed)
{
new fine[MAX_PLAYERS];
new str[128];
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)
{
fine[playerid]=((distance1[playerid]*17/10)-speed);
GivePlayerMoney(playerid, -2000);
format(str,sizeof(str), "[RADAR] Limita de viteza este de %d KM/H tu ai mers cu %d KM/H si ai luat amenda!",speed, distance1[playerid] ,fine[playerid]);
SendClientMessage(playerid, VERDEFRACO, str);
PlayerInfo[giveplayerid][pCarLicPoint] += 1;
if(PlayerInfo[giveplayerid][pCarLicPoint] >= 15)
{
format(str, sizeof(str), "Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare De La %s (Ai Acumulat 15 Puncte De Penalizare), reason: %s", sendername, (result));
SendClientMessage(giveplayerid, COLOR_ADMIN, str);
PlayerInfo[giveplayerid][pCarLic] = 0;
PlayerInfo[giveplayerid][pCarLicPoint] = 0;
return 1;
}
PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
}
}
}