I have Problem in key
#1

Quote:

if (newkeys & KEY_JUMP) //Jump
{
new
Float,
Float:y,
Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z + 10.0);

plz help me
Reply
#2

And what is your problem / error?
Reply
#3

Whats the problem?
Reply
#4

No i want to player key state
Reply
#5

What? If you don't know English ,
this
might help
Yeah that should be at OnPlayerKeyStateChange.

Reply
#6

guys i want to add mega jump in my scritp but only admin can use mega jump when a admin press LCtrl so help me plz give me the code
Reply
#7

RCON Admin or Admin Level defined by a variable?

Here is the code for RCON Admins:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(!IsPlayerAdmin(playerid)) return 1;
new
Float:x,
Float:y,
Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z + 10.0);
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)