[POMOC] RP Lisice

Započeo Denis_Lapi
19. Apr. 2013. Zaključano
624
pregleda
14
postova
denis_lapi
5
Godfather
19. Apr. 2013.
Skripta koju koristim:Moja skripta tj. GM
Detaljan opis problema:Kako bi ja mogao napraviti RP Lisice tj. kada napise igrac iz odredjene organizacije napise /lisice da se igracu kome sam hteo stavii lisice one pojave na njegovim rukama i da samim tim bude uhapsen...eto to je to...Hvala unapred
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Mikjo_Ivanovski
5
Kingpin
19. Apr. 2013.
Dodas objekt lisice u tvoju komandu evo ti:
 SetPlayerAttachedObject(targetid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977,-81.700035, 0.891999, 1.000000, 1.168000);//this will set the object cuffs at the hand of the player you want to cuff.
SetPlayerSpecialAction(targetid,SPECIAL_ACTION_CUFFED);


I onda u drugu komandu gde se trzaju lisice stavis da unisti objekt:
RemovePlayerAttachedObject(targetid,0);
SetPlayerSpecialAction(targetid,SPECIAL_ACTION_NONE);


I to bi bilo to  🙂
Deleted User
Obrisan korisnik
19. Apr. 2013.
Koristi:
http://wiki.sa-mp.com/wiki/SetPlayerSpecialAction
Ono sto mozes: http://wiki.sa-mp.com/wiki/SpecialActions

SetPlayerSpecialAction(playerid,SPECIAL_ACTION_CUFFED);//Samo nece ici playerid nego stavis promenljivu koju koristis za unosenje id-a...
denis_lapi
5
Godfather
22. Apr. 2013.
Jel bi mogao neko da mi taj primer sa skriptom da bih znao kako da primenim
denis_lapi
5
Godfather
1. Maj 2013.


    C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(67421) : error 017: undefined symbol "targetid"
    C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(67422) : error 017: undefined symbol "targetid"
    C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(73929) : warning 217: loose indentation
    Pawn compiler 3.2.3664                  Copyright (c) 1997-2006, ITB CompuPhase
   
   
    2 Errors.
   
   
    //ovo je prvi  error pa sam stavio da bude giveplayerid, posto tu koristim kao promenljivu i onda mi se pojavi sledece:
   
    C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(67422) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"
    C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(73929) : warning 217: loose indentation
    Pawn compiler 3.2.3664                  Copyright (c) 1997-2006, ITB CompuPhase
   
   
    1 Error.
   
    // postavlja se pitanje kako ja to da define posto kad idem samo #define  "SPECIAL_ACTION_CUFFED" pise
    error:invalid expenssion, assumed zero
    Sta da mu radim i kako da ga define?
denis_lapi
5
Godfather
1. Maj 2013.
http://pastebin.com/u49y9eMh#
Evo link past.biina
Deleted User
Obrisan korisnik
1. Maj 2013.
Ovo ja koristim,kad ga cuff pojave mu se lisice kad ga uncuff skidaju se
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
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);
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_CUFFED);
                                SetPlayerAttachedObject(giveplayerid, 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 = 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 !");
}
}
return 1;
}
if(strcmp(cmd, "/uncuff", true) == 0 || strcmp(cmd, "/skinilisice", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(gTeam == 2)
{
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /skinilisice [ID Igraca/Dio Imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
    if (ProxDetectorS(8.0, playerid, giveplayerid))
{
    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " Ne mozete skinuti sebi lisice!"); return 1; }
if(PlayerCuffed)
{
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s vam je skinuo lisice.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Skinuli ste lisice %s-u.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_NONE);
                                RemovePlayerAttachedObject(giveplayerid,0);
GameTextForPlayer(giveplayerid, "~g~Skinute su vam lisice", 2500, 3);
TogglePlayerControllable(giveplayerid, 1);
PlayerCuffed = 0;
}
else
{
    SendClientMessage(playerid, COLOR_GREY, " Tome igracu nisu stavljene lisice !");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, " Taj igrac nije blizu vas !");
    return 1;
}
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, " Taj igrac je offline !");
    return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste Policajac | FBI !");
}
}
return 1;
}
denis_lapi
5
Godfather
1. Maj 2013.
Copy sam to i izbaci mi ovo
C:\Users\Deca\Desktop\server GM TX\gamemodes\CLRP.pwn(67072) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"
denis_lapi
5
Godfather
1. Maj 2013.
Sta da define i kako?
denis_lapi
5
Godfather
1. Maj 2013.
Prebacen je meni GM u 0.3x ,ali i dalje nesto ne sljaka :/
denis_lapi
5
Godfather
1. Maj 2013.
Opet nesto nece isti error onaj sto sam  naveo: Undefined ....
Deleted User
Obrisan korisnik
1. Maj 2013.
Ako je do toga,definiraj to na vrhu moda.
#define SPECIAL_ACTION_CUFFED          24
denis_lapi
5
Godfather
1. Maj 2013.
Mislim da si mi pomogao, nisam jos proverio mada vise nemam error, samo je trebalo valjda dodati ono 24 ja to nisam stavljao 😄
Hvala u svakom slucaju 😄
denis_lapi
5
Godfather
1. Maj 2013.
Momci hvala svima koji ste mi pomogli..resio sam sve i napravio ono sto sam hteo..Hvala jos jednom svima 😄 😄 😄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha