Screenshake

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
alfre
Gana aktyvus vartotojas
Posts: 259
Joined: 2011 May 13 14:01
Skype: alfredasxl996
Contact:

Screenshake

Post by alfre »

kaip padaryti taip,kad screen shake būtu be sustojimo 60 sekundžių?
public ScreenPulsed(id)
{
new gmsgShake = get_user_msgid("ScreenShake")
message_begin(MSG_ONE, gmsgShake, {0,0,0}, id)
write_short(255<< 14 ) //ammount
write_short(50<<12) //lasts this long
write_short(255<< 2) //frequency
message_end()
}
padėkit :x

newb
Pluginų patvirtintojas
Posts: 1047
Joined: 2010 Sep 23 21:43
Location: Wonderland
Contact:

Re: Screenshake

Post by newb »

Abejoju, kad iskarto galima padaryti ant 60 sec. Bet gali ijunginet isnaujo kas 5 sec.

alfre
Gana aktyvus vartotojas
Posts: 259
Joined: 2011 May 13 14:01
Skype: alfredasxl996
Contact:

Re: Screenshake

Post by alfre »

gal galima pavyzduką?

TETYYS
Gana aktyvus vartotojas
Posts: 457
Joined: 2011 Dec 26 21:49

Re: Screenshake

Post by TETYYS »

write_short(50<<12) //lasts this long
lasts this long
Visai suprantamai sakyčiau parašyta

newb
Pluginų patvirtintojas
Posts: 1047
Joined: 2010 Sep 23 21:43
Location: Wonderland
Contact:

Re: Screenshake

Post by newb »

TETYYS wrote:
write_short(50<<12) //lasts this long
lasts this long
Visai suprantamai sakyčiau parašyta
O gal dar zinai kiek tas 50 << 12 laiko eina ? ^_^

alfre
Gana aktyvus vartotojas
Posts: 259
Joined: 2011 May 13 14:01
Skype: alfredasxl996
Contact:

Re: Screenshake

Post by alfre »

čia vapšė iš lempos mano surašyta :D nes nežinau ką kur rašyt kad būtu 60 sec be sustojimo

-- 2012 Bir 20 19:24 --

ačiū už pagalbą.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests