Posts: 261
Threads: 32
Joined: Dec 2018
Quote:
Originally Posted by Kaliber
Just something like this:
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys & KEY_SECONDARY_ATTACK) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z),SetPlayerPos(playerid, X, Y, Z);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
}
return 1;
}
|
Ok but where do i place the ServerJetpack bool to check it?
Quote:
Originally Posted by Florin48
solved?
|
Not yet.