-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from gta-devacc/master
Began implementation of player natives.
- Loading branch information
Showing
3 changed files
with
603 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
Oops, something went wrong.