• Easy GPSN •: » GetPlayerSkinName « -
Niko_boy - 07.04.2012
^ ^
I was bored so decided to play with some codes but later relaised about this idea , and i made it for myself .
But i am releasing it now :P
Just a Fun Include
GPSN ™
¤ GetPlayerSkinName ¤
Feature :-
- Uses MultiDimensional Array.
- Created With Simple Code.
- Took time in getting names of Skin from https://sampwiki.blast.hk/wiki/Skins:All .
- Renamed Normal Ped skins to Normal Ped(1) ,Normal Ped(2) ,.... and so on.
Usage:- GetPlayerSkinName(playerid)
Screen:
Notice: Skin ID 74 is Invalid Skin
Test Script:
Код HTML:
#include <a_samp>
#include <GPSN>
#include <zcmd>
CMD:skinname(playerid, params[])
{
new string[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "Your Name:%s(%i) || Skin:%s", pname, playerid, GetPlayerSkinName(playerid));
SendClientMessage(playerid,0xBBFFEEFF,string);
return 1;
}
CMD:skin(playerid,params[])
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Syntax: /skin ID");
new skin = strval(params);
if(skin > 299 || skin < 0 || skin == 74) return SendClientMessage(playerid,-1,"Valid Skins are Only b/w 0-299 , Skin ID 74 is invalid");
SetPlayerSkin(playerid, skin);
TogglePlayerControllable(playerid, true);
return 1;
}
Re: • Easy GPSN •: » GetPlayerSkinName « -
Knight_Rider - 07.04.2012
Aaooo nice Work
Re: • Easy GPSN •: » GetPlayerSkinName « -
IstuntmanI - 07.04.2012
Nice idea.
Re: • Easy GPSN •: » GetPlayerSkinName « -
Niko_boy - 07.04.2012
O: thanks guys <3
Re: • Easy GPSN •: » GetPlayerSkinName « -
Ballu Miaa - 07.04.2012
Not that useful in my view. Anyways nice attempt bro!
Re: • Easy GPSN •: » GetPlayerSkinName « -
organe. - 07.04.2012
nice !
Re: • Easy GPSN •: » GetPlayerSkinName « -
Niko_boy - 07.04.2012
Quote:
Originally Posted by Ballu Miaa
Not that useful in my view. Anyways nice attempt bro!
|
Heheh
Quote:
Originally Posted by Niko_boy
Just a Fun Include
|
Already mentioned
, just to play i made this include :/
And thx for appreciation
Re: • Easy GPSN •: » GetPlayerSkinName « -
wups - 07.04.2012
Somewhat handy.
Totally needed there.
Better:
pawn Код:
#define GetPlayerSkinName(%0) PlayerSkinName[GetPlayerSkin(%0)]
Re: • Easy GPSN •: » GetPlayerSkinName « -
Niko_boy - 07.04.2012
@Wups thanks for correcting me
Re: • Easy GPSN •: » GetPlayerSkinName « -
Toreno - 07.04.2012
I find it very useful, even if it's that easy to make. Anyway, good job, Niko_boy.
Re: • Easy GPSN •: » GetPlayerSkinName « -
EvgeN 1137 - 07.04.2012
Better:
pawn Код:
stock GetPlayerSkinName(playerid)
{
new id = GetPlayerSkin(playerid);
if(id < 0 || id > 299) return "";
else return PlayerSkinName[id];
}
Re: • Easy GPSN •: » GetPlayerSkinName « -
Lordzy - 23.06.2012
Useful.
And GooD JoB.
Re: • Easy GPSN •: » GetPlayerSkinName « -
MP2 - 23.06.2012
Nice. Noting that you used a multi-dimensional array is a bit strange though - what else could you have possibly used?
Re: • Easy GPSN •: » GetPlayerSkinName « -
Kar - 23.06.2012
I was about to post about that too MP2, but I scratched it.
is your amx size around 90kb? because using [][300] means each string is 300 long that means 300 x 300 = 90000. so change it to [300][] ?
Re: • Easy GPSN •: » GetPlayerSkinName « -
Patrik356b - 23.06.2012
Kar does have a point, but i would have used [][]
Pretty nice work tho.
Re: • Easy GPSN •: » GetPlayerSkinName « -
Omirrow - 30.03.2013
Good
Re: • Easy GPSN •: » GetPlayerSkinName « -
RedSnow - 05.09.2013
Gooddddddddddddd idea man!
Re: • Easy GPSN •: » GetPlayerSkinName « -
Dragonsaurus - 05.09.2013
This is a 6 month old thread...