[Pomoc]/tazer

Započeo (BSL)MasteR, Decembar 23, 2011, 17:01:33 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:FactionGame Edit
Detaljan opis problema:Jel moze neko da mi napravi ili kaze kako ja da napravim da kad gadja milicija tazerom kuca /ta id a ne samo /ta
Dio skripte:
if(strcmp(cmd, "/tazer", true) ==0 || strcmp(cmd, "/ta", true) ==0)
{
    if(IsPlayerConnected(playerid))
    {
if(gTeam[playerid] == 2 || IsACop(playerid))
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SendClientMessage(playerid, COLOR_GREY, "   Nemozete koristiti tazer dok ste u autu!");
        return 1;
    }
if(KnockedDown[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Ne mozete zamahnuti kada ste vec oboreni.");
return 1;
}
if(PlayerTied[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "   Vezani ste!");
return 1;
}
            if(ReduceTime[playerid] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Morate sacekati 5 sekundi prije ponovnog koriscenja ove komande !");
                return 1;
            }
    new suspect = GetClosestPlayer(playerid);
    if(IsPlayerConnected(suspect))
{
    if(PlayerCuffed[suspect] > 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Igrac je vec tazovan/uhapsen!");
        return 1;
    }
    if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
    if(gTeam[suspect] == 2)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Ne mozete taznuti PD / FBI!");
        return 1;
    }
    if(IsPlayerInAnyVehicle(suspect))
    {
        SendClientMessage(playerid, COLOR_GREY, "   Osumnjiceni je u autu, prvo ga izbacite!");
        return 1;
    }
    GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new randt = random(4)+1;
if(randt == 1)
{
    format(string, sizeof(string), "* %s puca sa svojim tazerom na %s-a, ali promasuje.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
format(string, sizeof(string), "* Tazovao vas je %s na 10 sekundi.", sendername);
SendClientMessage(suspect, COLOR_WHITE, string);
format(string, sizeof(string), "* Tazovali ste %s-a na 10 sekundi.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s puca tazerom na %s-a i pogadja ga.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(suspect, "~r~Sokiran", 2500, 3);
TogglePlayerControllable(suspect, 0);
PlayerCuffed[suspect] = 1;
PlayerCuffedTime[suspect] = 15;
                ReduceTime[playerid] = 1;
                SetTimerEx("ReduceTimer", 5000, false, "i", playerid);
}
            }
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Nema nikoga u vasoj blizini!");
    return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   Niste Policajac / FBI!");
}
}//not connected
    return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Balkan Online Public CS 1.6
IP:188.40.52.207:27027
Forum: www.cs-balkanonline.site40.net
Posjetite nas......