Clear Anim[Help] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Clear Anim[Help] (
/showthread.php?tid=335846)
Clear Anim[Help] -
Dan_Barocu - 20.04.2012
i cant kick [ RIGHT CLICK + ENTER]
PHP код:
if ((newkeys & KEY_AIM) && (GetPlayerState(playerid)== PLAYER_STATE_ONFOOT))
{
TogglePlayerControllable(playerid, 0);
TogglePlayerControllable(playerid, 1);
ClearAnimations(playerid);
return 1;
}
if i fall and press right click it like stops the movemen try it youl understand better!!!
Re: Clear Anim[Help] -
WLSF - 20.04.2012
I didn't understand, what's the idea?
Re: Clear Anim[Help] -
jaami - 20.04.2012
PHP код:
if ((newkeys & KEY_AIM) && (GetPlayerState(playerid)== PLAYER_STATE_ONFOOT))
{
if TogglePlayerControllable(playerid, 0);
{
TogglePlayerControllable(playerid, 1);
ClearAnimations(playerid);
return 1;
}
I dont know it works or not.
Re: Clear Anim[Help] -
Dan_Barocu - 20.04.2012
Quote:
Originally Posted by Willian_Luigi
I didn't understand, what's the idea?
|
test my posted cmd and right click and try to fight..
Re: Clear Anim[Help] -
Dan_Barocu - 20.04.2012
i get errors a bracket isnt good..please test them youl know what i mean!
Re: Clear Anim[Help] -
WLSF - 20.04.2012
Hmm, use other key, the problem is "ClearAnimations"
Re: Clear Anim[Help] -
ViniBorn - 20.04.2012
Try this
pawn Код:
if ((newkeys & KEY_AIM) && (GetPlayerState(playerid)== PLAYER_STATE_ONFOOT))
{
new Float:Velocity[3];
GetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2]);
if(Velocity[2] == 0)
{
TogglePlayerControllable(playerid, 0);
TogglePlayerControllable(playerid, 1);
ClearAnimations(playerid);
return 1;
}
}
Re: Clear Anim[Help] -
Dan_Barocu - 20.04.2012
no work..i still cant move i sow on a server he pressed right click and could move by clicking right click try to fight you now the Right click +enter fight...i cant fight..