Skip to content

Commit

Permalink
Merge pull request #5 from gta-devacc/master
Browse files Browse the repository at this point in the history
Began implementation of player natives.
  • Loading branch information
Battlerax authored Apr 14, 2019
2 parents f595c7b + e8cd36d commit 2f9c317
Show file tree
Hide file tree
Showing 3 changed files with 603 additions and 5 deletions.
41 changes: 41 additions & 0 deletions RagePawn/pawn-includes/rage_player.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
native Kick(playerid, reason[]='\0');
native Ban(playerid, reason[]='\0');
native SendClientMessage(playerid, message[]);
native Notify(playerid, message[]);
native GetPlayerName(playerid, name[], lenth);
native TriggerClientEvent(playerid, const name[], const format[], ...);
native SetPlayerName(playerid, name[]);
native IsPlayerAiming(playerid);
native GetPlayerHeading(playerid, &Float:heading);
native SetPlayerHeading(playerid, Float:heading);
native GetPlayerMoveSpeed(playerid, &Float:moveSpeed);
native GetPlayerHealth(playerid, &Float:health);
native SetPlayerHealth(playerid, Float:value);
native GetPlayerArmour(playerid, &Float:armour);
native SetPlayerArmour(playerid, Float:armour);
native GetPlayerAimPosition(playerid, Float:x, Float:y, Float:z);
native GetPlayerPing(playerid, &ping);
native GetPlayerPacketLoss(playerid, &packetLoss);
native GetPlayerKickReason(playerid, &reason[], length)
native Evaluate(playerid, code[]);


native SetPlayerName(playerid, name[]);
native GetPlayerIP(playerid, &ipAddress[], length);
native IsPlayerJumping(playerid);
native IsPlayerInCover(playerid);
native IsPlayerEnteringVehicle(playerid);
native IsPlayerLeavingVehicle(playerid);
native IsPlayerClimbing(playerid);
native IsPlayerOnLadder(playerid);
native IsPlayerReloading(playerid);
native IsPlayerInMelee(playerid);
native GetPlayerActionString(playerid, action[], length);








1 change: 0 additions & 1 deletion RagePawn/pawn.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once
#include "main.hpp"
#include "../amxlib/amx.h"

typedef struct {
bool fs;
AMX amx;
Expand Down
Loading

0 comments on commit 2f9c317

Please sign in to comment.