C'est une fonction sur U2C, elle ne viens pas de moi ;)
public PlayAlarmSound(vehicleid, Float:radi, time)
{
for(new i=0; i<MAX_PLAYERS;i++)
{
if(ProxDetectorV(Float:radi, i, vehicleid))
{
AlarmTime[i] = SetTimerEx("ReapitingAlarm", 1000, false, "d", i, Float:radi, vehicleid);
SetTimerEx("StopingAlarm", time, false, "d", i);
vehaS[i] = vehicleid;
roda[i] = radi;
return 1;
}
}
return 0;
}