Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: [SC] ScHaLe poslato Oktobar 07, 2011, 00:26:20 PRE PODNE

Naslov: [Pomoc] /cuff animacija
Poruka od: [SC] ScHaLe poslato Oktobar 07, 2011, 00:26:20 PRE PODNE
Skripta koju koristim: Skinuo tamo neku desnu ali slici mi na GF edit
Detaljan opis problema: Nikako nece da mi se prikaze animacija dog neko /cuff gledo sam po samp wiki ali nmg svatit zas nece :S
Dio skripte: if(strcmp(cmd, "/cuff", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
{
      tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koristi: /cuff [Playerid/DioImena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
   if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
       if(gTeam[giveplayerid] == 2 || IsACop(giveplayerid))
       {
           SendClientMessage(playerid, COLOR_GREY, "   Nemozes staviti lisice policajcu !");
       return 1;
       }
   if(PlayerCuffed[giveplayerid] > 0)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Igrac je vec vezan !");
       return 1;
   }
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
      GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
   format(string, sizeof(string), "* Policajac %s vam je stavio lisice.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Stavili ste lisice %s-u.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s je uhitio %s, .", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(giveplayerid, "~r~Uhiceni", 2500, 3);
      ApplyAnimation(giveplayerid,"ON_LOOKERS", "panic_hide", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
TogglePlayerControllable(giveplayerid, 0);
PlayerCuffed[giveplayerid] = 2;
PlayerCuffedTime[giveplayerid] = 252525;
}
else
{
   SendClientMessage(playerid, COLOR_YELLOW, "INFO: Igrac nije blizu tebe !");
   return 1;
}
}
}
else
{
   SendClientMessage(playerid, COLOR_YELLOW, "INFO: Igrac je offline !");
   return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "INFO: Nisi Cop / FBI / National Guard !");
}
}
return 1;
}
- Pokusavao sam i neke bezvezne animacije ali nikako da je prikaze
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Naslov: Odg: [Pomoc] /cuff animacija
Poruka od: [BM]Aleksa_Smiljanic poslato Oktobar 07, 2011, 22:29:03 POSLE PODNE
Tebi nema pomoci to se nikom nedesava evo ti savet probaj resetuj mod mozda ti uspe ;s
Naslov: Odg: [Pomoc] /cuff animacija
Poruka od: panameR. poslato Oktobar 08, 2011, 00:03:36 PRE PODNE
Citat: [BM]Aleksa_Smiljanic poslato Oktobar 07, 2011, 22:29:03 POSLE PODNE
Tebi nema pomoci to se nikom nedesava evo ti savet probaj resetuj mod mozda ti uspe ;s

lol kakvo restartovanje mod-a? :S


umjesto

ApplyAnimation(giveplayerid,"ON_LOOKERS", "panic_hide", 4.0, 0, 1, 1, 1, -1); // Gun Arrest

stavi
ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0);
ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0);



Naslov: Odg: [Pomoc] /cuff animacija
Poruka od: [SC] ScHaLe poslato Oktobar 08, 2011, 00:17:12 PRE PODNE
Vidi sad ja maknem TogglePlayerControllable(giveplayerid, 0); i animacija radi ali kada stavim to nazad neradi...ali ako ne stavim da igraca ne freeza moze abusat /stopanim..znaci moze si ponistit animaciju sa ClearAnimations(playerid);ali ako je igrac freezan nemoze abusat..Jel bi pomogo neki timer?
Naslov: Odg: [Pomoc] /cuff animacija
Poruka od: Gotti747 poslato Oktobar 08, 2011, 02:10:25 PRE PODNE
Citat: [BM]Aleksa_Smiljanic poslato Oktobar 07, 2011, 22:29:03 POSLE PODNE
Tebi nema pomoci to se nikom nedesava evo ti savet probaj resetuj mod mozda ti uspe ;s

a kako se to resetuje mod da uradim i ja ?  ::)
Naslov: Odg: [Pomoc] /cuff animacija
Poruka od: fearless.pwn poslato Oktobar 08, 2011, 09:55:04 PRE PODNE
if(strcmp(cmd, "/cuff", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
{
      tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koristite: /cuff [Korisnicki ID ili Ime Korisnika]");
return 1;
}
giveplayerid = ReturnUser(tmp);
   if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
       if(gTeam[giveplayerid] == 2 || IsACop(giveplayerid))
       {
           SendClientMessage(playerid, COLOR_GREY, "   Nemozes staviti lisice kolegi !");
       return 1;
       }
   if(PlayerCuffed[giveplayerid] > 0)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Igrac ima lisice !");
       return 1;
   }
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
      GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
   format(string, sizeof(string), "* Sluzbenik %s vam je stavio lisice.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Stavili ste lisice %s-u.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s je stavio lisice %s, .", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(giveplayerid, "~r~Uhiceni", 2500, 3);
                   ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0);
TogglePlayerControllable(giveplayerid, 0);
PlayerCuffed[giveplayerid] = 2;
PlayerCuffedTime[giveplayerid] = 252525;
}
else
{
   SendClientMessage(playerid, COLOR_RED, "[GreÅ¡ka!]{FFFFFF} Igrac nije blizu tebe !");
   return 1;
}
}
}
else
{
   SendClientMessage(playerid, COLOR_RED, "[GreÅ¡ka!]{FFFFFF} Igrac je offline !");
   return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "[Greška!]{FFFFFF} Niste clan LSPD/SWAT/FBIa!");
}
}
return 1;
}



a pod /Stopanim:

if(PlayerCuffed[giveplayerid] > 1)
{
    SendClientMessage(playerid, COLOR_RED, "[GreÅ¡ka!]{FFFFFF} NemožeÅ¡ stopirati animaciju,imate lisice");
    return 1;
}


trebali bi radit
Naslov: Odg: [Pomoc] /cuff animacija
Poruka od: [SC] ScHaLe poslato Oktobar 08, 2011, 15:25:13 POSLE PODNE
rijesio.. Hvala decki :)

Moze lock
Naslov: Odg: [Pomoc] /cuff animacija
Poruka od: K4[Я]!K3 poslato Oktobar 08, 2011, 15:27:53 POSLE PODNE
Citat: ScHaLe poslato Oktobar 08, 2011, 15:25:13 POSLE PODNE
rijesio.. Hvala decki :)

Moze lock
ili sam ja riješio? :)

LOCK