[Pomoc] /cuff animacija

Započeo [SC] ScHaLe, Oktobar 07, 2011, 00:26:20 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

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):
Poslednja Izmena: Oktobar 07, 2011, 00:30:59 PRE PODNE od ScHaLe
Street's Creed

Street's Creed gaming zajednica se vraća.
Forum: www.streets-creed.info
IP: 213.149.60.34:7774

Tebi nema pomoci to se nikom nedesava evo ti savet probaj resetuj mod mozda ti uspe ;s

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);



Respect: $--L84S--$, ναηιâ,,"â,,"α , BloodMaster , LuxZillo, Don_Sergio, ExtremePower, Gotti747, Gagi_

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?
Street's Creed

Street's Creed gaming zajednica se vraća.
Forum: www.streets-creed.info
IP: 213.149.60.34:7774

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 ?  ::)
Citat: ...Neno... poslato Januar 26, 2013, 23:31:02 POSLE PODNE
Poceo sam mapati i tu je doslo do problema.Nakon par mapa,vidio sam post Gottia i kaze da nista nevalja da je katastrofa,i pocnemo se svadjati,psovati.Popusimo bananu obojica,i nakon toga nesto sam napravio (mapu) i Gotti kaze dobra,uh reko opet me zajebava,i saljem ja njemu na pm reko ti mene zajebavas,kaze on ne,i pomirimo se.Nakon toga postali smo dosta dobri

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
Poslednja Izmena: Oktobar 08, 2011, 09:56:28 PRE PODNE od fearless.pwn






CroHerze informacije



Nick(RP) : Lenart Wixxer
Nick(DM) : fearless
Rank : Mapping TEAM (RPG)
EX Rank : RPG/DM GameSage (1) | DM Administrator (3)
CH-DM : Ex.Skripter
CH-RP : Maper








BS i ostale informacije



Rank :
Profil : Click
XFire : fearlesscroherze Zanimanje : Skripter,Maper


rijesio.. Hvala decki :)

Moze lock
Street's Creed

Street's Creed gaming zajednica se vraća.
Forum: www.streets-creed.info
IP: 213.149.60.34:7774