mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
added in two old natives again
fixed a native spelling mistake
This commit is contained in:
parent
446c5523f8
commit
f25824a1aa
@ -230,6 +230,24 @@ BEGIN_USER_FUNC(force_powerup_run)
|
|||||||
return 1;
|
return 1;
|
||||||
END_USER_FUNC()
|
END_USER_FUNC()
|
||||||
|
|
||||||
|
BEGIN_USER_FUNC(has_superjump)
|
||||||
|
int val3 = pPlayer->GetOffset(TSX_MSG_OFFSET);
|
||||||
|
|
||||||
|
if (val3 & 0x01000000)
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
END_USER_FUNC()
|
||||||
|
|
||||||
|
BEGIN_USER_FUNC(has_fupowerup)
|
||||||
|
int val3 = pPlayer->GetOffset(TSX_MSG_OFFSET);
|
||||||
|
|
||||||
|
if (val3 & 65536)
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
END_USER_FUNC()
|
||||||
|
|
||||||
static cell AMX_NATIVE_CALL set_user_cash(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL set_user_cash(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
int id = params[1];
|
int id = params[1];
|
||||||
@ -508,10 +526,10 @@ static cell AMX_NATIVE_CALL give_pwup(AMX *amx, cell *params)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static cell AMX_NATIVE_CALL ts_setup(AMX *amx, cell *params){ // index,pwupentindex
|
static cell AMX_NATIVE_CALL ts_setup(AMX *amx, cell *params)
|
||||||
|
{ // index,pwupentindex
|
||||||
gKnifeOffset = params[1];
|
gKnifeOffset = params[1];
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static cell AMX_NATIVE_CALL register_forward(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL register_forward(AMX *amx, cell *params)
|
||||||
@ -561,7 +579,7 @@ AMX_NATIVE_INFO base_Natives[] = {
|
|||||||
{ "ts_getuserlastfrag", get_lastFrag },
|
{ "ts_getuserlastfrag", get_lastFrag },
|
||||||
{ "ts_getuserkillflags", get_killflags },
|
{ "ts_getuserkillflags", get_killflags },
|
||||||
{ "ts_getuserslots", get_user_slots },
|
{ "ts_getuserslots", get_user_slots },
|
||||||
{" ts_setuserslots", set_user_slots },
|
{ "ts_setuserslots", set_user_slots },
|
||||||
|
|
||||||
{ "ts_getuserstate", get_user_state },
|
{ "ts_getuserstate", get_user_state },
|
||||||
|
|
||||||
@ -569,6 +587,9 @@ AMX_NATIVE_INFO base_Natives[] = {
|
|||||||
{ "ts_createpwup",create_pwup },
|
{ "ts_createpwup",create_pwup },
|
||||||
{ "ts_givepwup",give_pwup },
|
{ "ts_givepwup",give_pwup },
|
||||||
|
|
||||||
|
{ "ts_has_superjump", has_superjump },
|
||||||
|
{ "ts_has_fupowerup", has_fupowerup },
|
||||||
|
|
||||||
{ "ts_set_message", set_user_message },
|
{ "ts_set_message", set_user_message },
|
||||||
{ "ts_get_message", get_user_message },
|
{ "ts_get_message", get_user_message },
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user