07.06.2008, 17:08
Lets get back to Useful Functions?
i kinda needed this, so i made it...
i kinda needed this, so i made it...
IsValidSound(soundid)
pawn Code:
stock IsValidSound(soundid)
{
new Sounds[] = { 1002, 1009, 1027, 1035, 1036, 1039, 1052, 1053,
1054, 1055, 1056, 1057, 1058, 1062, 1063, 1068,
1069, 1076, 1077, 1083, 1084, 1085, 1097, 1098,
1130, 1131, 1132, 1133, 1134, 1135, 1136, 1137,
1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145,
1146, 1147, 1148, 1149, 1150, 1153, 1154, 1163,
1165, 1166, 1169, 1183, 1184, 1185, 1186, 1187,
1188 };
for(new i = 0; i < sizeof(Sounds); i++)
{
if(soundid == i) return 1;
}
return 0;
}