Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Gare poslato Februar 07, 2012, 12:43:26 POSLE PODNE

Naslov: [Pomoc] Pomoc oko Zvuka
Poruka od: Gare poslato Februar 07, 2012, 12:43:26 POSLE PODNE
Skripta koju koristim: gtarp
Detaljan opis problema: Ja koristim RP gamemode i ocu kada neki igrac napise nesto na /askq [text] da kad to izadje adminima da se i adminima cuje zvuk (PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);) Ali to sto sam stavio playerid to ce da pusti tom sto je napisao /askq a ne adminima!!! Ja hocu da mi neko kaze kako da to admini samo cuju koji vide askq?? :D
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Naslov: Odg: [Pomoc] Pomoc oko Zvuka
Poruka od: Andrej_Burn poslato Februar 07, 2012, 13:06:17 POSLE PODNE
To moras napisat ispod /ask negdje ja mislim neznam bas dobro skriptat nisam siguran
Naslov: Odg: [Pomoc] Pomoc oko Zvuka
Poruka od: Gare poslato Februar 07, 2012, 14:55:15 POSLE PODNE
Hahahaha, pa znam da moram da napisem ispod komande /askq! hahahaha ! Dajt treba mi pravi scripter, ali mislim da ih ovde nema :D
Naslov: Odg: [Pomoc] Pomoc oko Zvuka
Poruka od: Billie Joe Armstrong poslato Februar 07, 2012, 15:11:19 POSLE PODNE
Citat: Gare poslato Februar 07, 2012, 14:55:15 POSLE PODNE
Hahahaha, pa znam da moram da napisem ispod komande /askq! hahahaha ! Dajt treba mi pravi scripter, ali mislim da ih ovde nema :D

Evo ja sam pravi , nisam iz crtića.

Postaj komandu.
Naslov: Odg: [Pomoc] Pomoc oko Zvuka
Poruka od: K4[Я]!K3 poslato Februar 07, 2012, 15:21:39 POSLE PODNE
Citat: Gare poslato Februar 07, 2012, 14:55:15 POSLE PODNE
Hahahaha, pa znam da moram da napisem ispod komande /askq! hahahaha ! Dajt treba mi pravi scripter, ali mislim da ih ovde nema :D
ajde pr0..
baci kroz loop provjeru online admina i posalji im taj sound
Naslov: Odg: [Pomoc] Pomoc oko Zvuka
Poruka od: Gare poslato Februar 08, 2012, 09:44:42 PRE PODNE
evo taj zvuk!

PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);

A to kad bi u takvom formatu ubacio ispod /askq, onda bi se taj zvuk cuo tom sto je poslao tu komandu~~~ Evo i deo scripte!


if(strcmp(cmd, "/askq", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /askq [text]");
return 1;
}
format(string, sizeof(string), "Pitanje od %s ID:%d: %s", sendername, playerid, (result));
ABroadCast(COLOR_ASKQ,string,1);
PBroadCast(COLOR_ASKQ,string,1);
            PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, -50);
SendClientMessage(playerid, COLOR_ASKQ, "UPOZORENJE: Pre nego sto postavite pitanje posetite forum --------------------- i nadjite odgovor tamo.");
SendClientMessage(playerid, COLOR_ASKQ, "imate opciju Pitanja i Odgovori i postavite pitanje ili nadjite odgovor.");
SendClientMessage(playerid, COLOR_ASKQ, "Vase pitanje je poslato adminima cena pitanja 50 $.");
    }
    return 1;
}