27.12.2013, 22:52
(
Последний раз редактировалось bombomloko; 27.12.2013 в 23:28.
)
Quote:
й so usar OnPlayerKeyState (Acho que й esse o nome)
ai vc pega o nome da animaзгo de correr, lб na wiki. e faz: Ao botгo x ser apertado executar tal animaзгo. Mas nгo se esqueзa de verificar as skins. o PT Fez ai o switch dele.. essa й minha lуgica, nгo vo codar, pq to em otro pc e й muito ruim aqui. LINKS: https://sampwiki.blast.hk/wiki/Animations https://sampwiki.blast.hk/wiki/Keys espero ter ajudado! |
pawn Код:
if(newkeys & KEY_UP)
{
switch(GetPlayerSkin(playerid))
{
case 92: ApplyAnimation(playerid,"SKATE","skate_run",4.0,1,1,1,1,500);
case 99: ApplyAnimation(playerid,"SKATE","skate_run",4.0,1,1,1,1,500);
}
}
if(newkeys & KEY_SPRINT)
{
switch(GetPlayerSkin(playerid))
{
case 92: ApplyAnimation(playerid,"SKATE","skate_sprint",4.0,1,1,1,1,500);
case 99: ApplyAnimation(playerid,"SKATE","skate_sprint",4.0,1,1,1,1,500);
}
}