[Include] shorten.inc - than simply shorten the work
#1

shorten.inc
than simply shorten the work
Made by Shockwa (mathuusho)
PHP код:
#include <shorten> 

SetPlayerHealth SPH
SetPlayerArmour SPA
SetPlayerPos SPP
SetPlayerSkin SPS
SetPlayerColor SPC

GivePlayerWeapon GPW
ResetPlayerWeapons RPW
GivePlayerMoney GPM
ResetPlayerMoney RPM

MoveObject MO
AddStaticPickup ASP
SetPlayerCheckpoint SPCH
DisablePlayerCheckpoint DPCH

SetPlayerMapIcon SPMI
RemovePlayerMapIcon RPMI

Quote:

for example

before
PHP код:
SendClientMessage(playeridCOLOR_WHITE"example text."); 
after
PHP код:
#include <shorten>
SCM(playeridCOLOR_WHITE"example text."); 
Reply
#2

Pastebin?
Reply
#3

More confusing that what it's actually worth, but if it's useful to you... To each, his own.
Pastebin:
pawn Код:
#define SetPlayerHealth SPH
#define SetPlayerArmour SPA
#define SetPlayerPos SPP
#define SetPlayerSkin SPS
#define SetPlayerColor SPC

#define GivePlayerWeapon GPW
#define ResetPlayerWeapons RPW
#define GivePlayerMoney GPM
#define ResetPlayerMoney RPM

#define MoveObject MO
#define AddStaticPickup ASP
#define SetPlayerCheckpoint SPCH
#define DisablePlayerCheckpoint DPCH

#define SetPlayerMapIcon SPMI
#define RemovePlayerMapIcon RPMI
Reply
#4

that looks nice.. good for advanced scriptors

not good for newbies... well maybe it could be.

i like it alot
Reply
#5

Your abbreviations can actually confuse people.

For example:
Quote:
Originally Posted by mathuusho
Посмотреть сообщение
GivePlayerWeapon GPW
and
Quote:
Originally Posted by mathuusho
Посмотреть сообщение
GivePlayerMoney GPM
GPW() can be GetPlayerWeapon(), also GPM() can be GetPlayerMoney() aswell.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)