Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Renato_ZG_ poslato Februar 05, 2010, 19:24:17 POSLE PODNE

Naslov: Pomoć oko /whispera
Poruka od: Renato_ZG_ poslato Februar 05, 2010, 19:24:17 POSLE PODNE
Pozdrav !

Moze li mi netko reci kako da napravim /whisper komandu tj imam ju, ali zelim napraviti da donatori mogu blokirati whispere.

Hvala !
Naslov: Odg: Pomoć oko /whispera
Poruka od: Chris poslato Februar 05, 2010, 19:43:37 POSLE PODNE
To imas u svakom modu samo pristisni ctrl+f u pawnu i upisi /togwhisper

if(strcmp(cmd, "/togwhisper", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pDonateRank] > 1 || PlayerInfo[playerid][pAdmin] > 1)
        {
if (!HidePM[playerid])
{
HidePM[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, "   Whisper chat channel Disabled !");
}
else if (HidePM[playerid])
{
HidePM[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "   Whisper chat channel Enabled !");
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Not an Admin / Premium Account User !");
            return 1;
}
}
return 1;
}


Evo ovo ti je primjer samo tu di pise if(PlayerInfo[playerid][pDonateRank] > 1 stavi broj jedan ako nije....
Naslov: Odg: Pomoć oko /whispera
Poruka od: Renato_ZG_ poslato Februar 05, 2010, 19:46:26 POSLE PODNE
Hvala puno !!!