help with a no-cbug feature
#1

hello all of you guys, i've a problem by creating a no-cbug feature, the feature its suposed that when the player cbugs it will gives the player a little "jump" ok, here is what i have and by some reason that i dont know it doesnt works :l

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new weapon = GetPlayerWeapon(playerid);
    if(newkeys & KEY_CROUCH && weapon > 23 && weapon < 35)
    {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid,X,Y,Z);
        SetPlayerPos(playerid,X,Y,Z+0.6);
        SetPlayerFacingAngle(playerid,random(360));
        SetCameraBehindPlayer(playerid);
        GivePlayerWeapon(playerid,1,1);
        PlayerPlaySound(playerid,1190,0.0,0.0,0.0);
        return 1;
    }
    return 1;
}
hope some one can help me finding out why that doesnt works :l
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)