[TuT] 0.3e stavljanje lisica

Započeo hudiga
14. Maj 2012. Zaključano
4,727
pregleda
25
postova
goran
5
Kingpin
14. Maj 2012.
Evo nasao sam na sa-mp forumu 0.3e lisice pa da i vama objavim.

Orginalna tema: http://forum.sa-mp.com/showthread.php?t=341868


Radi se o tome,kada nekom policajac stavi lisice,njemu ruke budu na ledjiva,i kad proba bjezati stalno pada na pod.

Ubacivanje je jednostavno.Samo ubacite sledeci dok pod OnPlayerKeyStateChange i to je to,ali morate imati 0.3e !
if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0);
Deleted User
Obrisan korisnik
14. Maj 2012.
dobar tut
Non-Stop Samper
5
Underboss
14. Maj 2012.
Znači ako naprimjer u komandi /cuff stavi animaciju "SPECIAL_ACTION_CUFFED" ono automatski stavlja na ovu animaciju?
CH | Marko
5
Underboss
14. Maj 2012.
stavi ovo u komandi cuff...

SetPlayerAttachedObject(giveplayerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
                          SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_CUFFED);
sonic
4
Shot Caller
14. Maj 2012.
Najaca stvar u 0.3e verziji a i onaj object editor in game..  🙂

hvala za tut!  😄 😁
goran
5
Kingpin
17. Maj 2012.
Na /uncuff stavis da ti unisti taj objekat i da ti nema animacije !
Luis
5
Godfather
17. Maj 2012.
markinjo.amx wrote on May 14, 2012, 11:32 am:
stavi ovo u komandi cuff...

SetPlayerAttachedObject(giveplayerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
                          SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_CUFFED);
Ee to sam stavio , a kad mu skida lisice ( /uncuff) sta da stavim tu ?

jednostavno:
                                        RemovePlayerAttachedObject(giveplayerid,0);
                                        SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
Vince
2
Street Runner
17. Maj 2012.
Ovo s lisicama je predobra stvar, lijep Tutorial  😉
The Woozie
5
Kingpin
19. Maj 2012.
Posluzit ce mi, odlican tutorial  😉
goran
5
Kingpin
24. Maj 2012.
Nadao sam se da ce mnogima posluzit,zato sam i objavio 🙂
Marshall
3
Hustler
9. Jul 2012.
Claude_ wrote on May 14, 2012, 11:32 am:
stavi ovo u komandi cuff...

SetPlayerAttachedObject(giveplayerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
                          SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_CUFFED);


Znači, stavim to kako si reko i izbaci mi error
C:\Users\Komp\Desktop\Toxic RolePlay\gamemodes\CLRP.pwn(63562) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"


A evo moje komande /cuff
	if(strcmp(cmd, "/cuff", true) == 0 || strcmp(cmd, "/stavilisice", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(gTeam == 2 || IsACop(playerid))
{
if(KnockedDown == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Ne mozete zamahnuti kada ste vec oboreni.");
return 1;
}
if(PlayerTied == 1)
{
SendClientMessage(playerid, COLOR_GREY, "  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 == 2 || IsACop(giveplayerid))
        {
            SendClientMessage(playerid, COLOR_GREY, "  Ne mozete staviti lisice Policajcu!");
        return 1;
        }
    if(PlayerCuffed > 1)
    {
        SendClientMessage(playerid, COLOR_GREY, "  Igracu su vec stavljene lisice !");
        return 1;
    }
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "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);
GameTextForPlayer(giveplayerid, "~r~Stavljene su vam lisice", 2500, 3);
TogglePlayerControllable(giveplayerid, 0);
SetPlayerAttachedObject(giveplayerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
        SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_CUFFED);
PlayerCuffed = 2;
PlayerCuffedTime = 99999999999999;
    }

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


Trebam #define na pocetku? Kako sta, objasnite mi... Ucim se skriptanju, polako sve shvacam, al ovo mi nejasno pa ako mozete pomoci
goran
5
Kingpin
9. Jul 2012.
Moras imati sve 0.3e include 😛
J0PS0NEE
4
Enforcer
9. Jul 2012.
NeÅ¡to najgotivnije na 0.3e 😄
MarkoDzaja
3
Hustler
9. Jul 2012.
Lijepo 10/10
Marshall
3
Hustler
10. Jul 2012.
нυDιgα™ wrote on July 9, 2012, 10:30 am:
Moras imati sve 0.3e include 😛


di da to nadjem?

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha