Can someone help me in creating it ?
#1

Guys i want to make High jump for VIP's . If VIP's press left alt they do high jump
Reply
#2

don't know about left alt but you can choose any of the keys from the list in the link below:
https://sampwiki.blast.hk/wiki/Keys

I am using key crouch.

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED( KEY_CROUCH ))
    {
        new FLOAT:x, FLOAT:y, FLOAT:z;
        GetPlayerPos(playerid, x, y, z);
        SetPlayerPos(playerid, x, y, z+25);
    }

    return 1;
}
this may fulfill your needs. If you want to make a jump higher then just increase the value after flaot Z.
Reply
#3

where should i add this ?

And i need this for VIP

if(PlayerInfo[playerid][elite] < 1) return SendClientMessage(playerid, RED, "Only premium elites can use this.");
Reply
#4

Код:
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(1767) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(1767) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(1767) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(1832) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(1832) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(2859) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(2859) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(2859) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(2884) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(2913) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(2966) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(3038) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(3057) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(3354) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(3354) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(3354) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(5861) : warning 204: symbol is assigned a value that is never used: "final_speed"
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10380) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10380) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10380) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10393) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10393) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10393) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10406) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10406) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10406) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10419) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10419) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10419) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10432) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10432) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10432) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10445) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10445) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10445) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10458) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10458) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(10458) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(12101) : warning 213: tag mismatch
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(12101) : warning 213: tag mismatch
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(12101) : warning 213: tag mismatch
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(12172) : warning 213: tag mismatch
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(12172) : warning 213: tag mismatch
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(12172) : warning 213: tag mismatch
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(16941) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(16941) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(16941) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(17312) : error 010: invalid function or declaration
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(17315) : error 021: symbol already defined: "GetPlayerPos"
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19094) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19094) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19094) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19112) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19112) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19112) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19130) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19130) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19130) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19148) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19148) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19148) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19167) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19167) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19167) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19185) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19185) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19185) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19209) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19209) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19209) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19789) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19789) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19789) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19966) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19966) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(19966) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20066) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20066) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20066) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20141) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20141) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20141) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20216) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20216) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20216) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20293) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20293) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20293) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20407) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20407) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20407) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20481) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20481) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(20481) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(25074) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(25074) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(25074) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(25573) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(25573) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(25573) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(25962) : warning 213: tag mismatch
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(25962) : warning 213: tag mismatch
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(25962) : warning 213: tag mismatch
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26195) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26195) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26195) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26245) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26245) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26245) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26267) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26267) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26267) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26285) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26285) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26285) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26303) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26303) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26303) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26330) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26330) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26330) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26580) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26580) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(26580) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(28579) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(28579) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(28579) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(28621) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(28621) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(28621) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(28648) : warning 219: local variable "x" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(28648) : warning 219: local variable "y" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(28648) : warning 219: local variable "z" shadows a variable at a preceding level
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(29630) : warning 203: symbol is never used: "x"
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(29630) : warning 203: symbol is never used: "y"
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(29630) : warning 203: symbol is never used: "z"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Errors warning's
Reply
#5

i see ur running nvcnr gamemode.. dude dont copy paste adjust it as nvcnr requirment n all.. ^^
Reply
#6

just change the label of float.

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED( KEY_CROUCH ))
    {
        new FLOAT:q, FLOAT:w, FLOAT:e;
        GetPlayerPos(playerid, q, w, e);
        SetPlayerPos(playerid, q, w, e+25);
    }

    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)