07.04.2012, 08:37

^ ^
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)
Notice: Skin ID 74 is Invalid Skin
¬¬
Link To Download [Now Up]‰:

http://pastebin.com/Q2h42L51
Direct Download
http://www.mediafire.com/download.php?p7296x6hm40adxd
Test Script:Link To Download [Now Up]‰:

http://pastebin.com/Q2h42L51
Direct Download
http://www.mediafire.com/download.php?p7296x6hm40adxd
Код 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; }