[Include] shorten.inc - than simply shorten the work - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] shorten.inc - than simply shorten the work (
/showthread.php?tid=472012)
shorten.inc - than simply shorten the work -
mathuusho - 26.10.2013
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
before
PHP код:
SendClientMessage(playerid, COLOR_WHITE, "example text.");
after
PHP код:
#include <shorten>
SCM(playerid, COLOR_WHITE, "example text.");
Re: shorten.inc - than simply shorten the work -
Jochemd - 26.10.2013
Pastebin?
Re: shorten.inc - than simply shorten the work -
RajatPawar - 26.10.2013
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
Re: shorten.inc - than simply shorten the work -
andrewgrob - 26.10.2013
that looks nice.. good for advanced scriptors
not good for newbies... well maybe it could be.
i like it alot
AW: shorten.inc - than simply shorten the work -
BigETI - 26.10.2013
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.