06.06.2010, 21:05
Rusooooo, nгo deu tentei das duas formas
pawn Код:
if(GetSpeedKM(playerid) >100)
{
new string[128];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
new suspect = GetClosestPlayer(playerid);
if(PlayerInfo[suspect][pFaction] != 255 && DynamicFactions[PlayerInfo[suspect][pFaction]][fType] == 1)
{
if(GetDistanceBetweenPlayers(playerid, suspect) < 15)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(IsPlayerDriver(vehicle))
{
format(string, sizeof(string), "Acabou de passar por ti um carro que ultrapassou o limite de velocidade((Nome: %s ))", sendername);
SendClientMessage(suspect, COLOR_LSPD, string);
}
}
}
}
return 1;
}