Definisanje

Započeo Bilsen_Jahjagic, Mart 11, 2013, 14:52:34 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Bilsen_Jahjagic

Skripta koju koristim:FS:RP
problem:Dodao sam ovo SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
i nzm kako da definisem ovo setplayerspecial action cuffed
2.I ako moze neko da mi objasni kako da napravim da se dodaje maska kod komande maskon
Dio Skripte:/
Poslednja Izmena: Mart 11, 2013, 14:57:00 POSLE PODNE od Joe_Most

Ne kapiram ovo prvo pitanje? Jednostavno stavis pod komandu to, i to je to, ako sam te dobro skapirao :D
RESPECT :
Vegas & C++

Bilsen_Jahjagic

Stavio sam ali izbacuje mi error u redu gdje je ovo setplayeraction
ovaj eror error 035: argument type mismatch (argument 2)

Znaci da si nesto izostavio u svom kodu, pogledaj ovo :
http://balkan-samp.com/forum/index.php?topic=40233.0
RESPECT :
Vegas & C++

Bilsen_Jahjagic


Daj taj kod di to radiš sve ..
BIG RESPEKT: Blaeks,  [CRP] Joey_, David (Sabljak) A.k.A SABO(T), joXy_, Dimi, Sexserghy ♥, TerminuS, H1TM4N

Bilsen_Jahjagic

if(strcmp(cmd, "/cuff", true) == 0 || strcmp(cmd, "/stavilisice", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(gTeam[playerid] == 2 || IsACop(playerid))
{
if(KnockedDown[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "[GRESKA] Ne mozete zamahnuti kada ste vec oboreni.");
return 1;
}
if(PlayerTied[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "[INFO] Vezani ste!");
return 1;
}
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /stavilisice [ID Igraca/Dio Imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
        if(gTeam[giveplayerid] == 2 || IsACop(giveplayerid))
        {
            SendClientMessage(playerid, COLOR_GREY, "[GRESKA] Ne mozete staviti lisice Policajcu!");
        return 1;
        }
    if(PlayerCuffed[giveplayerid] > 1)
    {
        SendClientMessage(playerid, COLOR_GREY, "[GRESKA] Igracu su vec stavljene lisice !");
        return 1;
    }
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "[GRESKA] Ne mozete staviti lisice sebi!"); return 1; }
    {
        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s vam je stavio lisice.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Stavili ste lisice %s-u.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s stavlja lisice %s-u.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
                                SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
GameTextForPlayer(giveplayerid, "~r~Stavljene su vam lisice", 2500, 3);
ApplyAnimation(giveplayerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
TogglePlayerControllable(giveplayerid, 0);
PlayerCuffed[giveplayerid] = 2;
PlayerCuffedTime[giveplayerid] = 99999999999999;
    }

}
else
{
    SendClientMessage(playerid, COLOR_GREY, "[GRESKA] Taj igrac nije blizu vas !");
    return 1;
}
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "[GRESKA] Igrac je offline !");
    return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[GRESKA] Niste Policajac | FBI !");
}
}
return 1;
}