Szerző Téma: Skin Name  (Megtekintve 1522 alkalommal)

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Skin Name
« Dátum: 2012. június 23. - 22:10:26 »
+2 Show voters
Üdv all!
Találtam egy inc-t hiv.fórumon ami kideríti a skin nevét, és ez alapján írtam egy kis CODE-t, ami megváltoztatja a skin-t és kiírja a nevét!
INC készítõje: Niko_boy
CODE készítõje: Flash(én)
Elkészítési idõ: 1 perc (se)
hiv.: http://forum.sa-mp.com/showthread.php?t=332129
INC:
 
/*  SA-MP GetPlayerSkinName Function
*
*  (c) Copyright 2012, Niko_boy , sa-mp team and Wiki-SAMP
*
*/
#if defined _GPSN_included
    #endinput
#endif
#define _GPSN_included
 
/*
native GetPlayerSkinName(playerid);
*/
 
new PlayerSkinName[][300] ={//TotaL 299 skins , 55 normal peds skins
\"Carl Johnson\", \"The Truth\", \"Maccer\", \"Andre\",
\"Barry BigBear Thorne[Thin]\", \"Barry BigBear Thorne[Fat]\", \"Emmet\",
\"TrainDriver\", \"Janitor\", \"Normal Ped(1)\", \"Old Woman\",
\"Casino Croupier1\", \"Rich Woman1\", \"Street Girl\", \"Normal Ped(2)\", \"Mr. Whittaker\",
\"Airport Ground Worker\", \"Buisnessman1\", \"Beach Visitor(M)1\" ,\"DJ\", \"Madd Dogg\'s Manager\", \"Normal Ped(3)\",
\"Normal Ped(4)\", \"BMXer\", \"Madd Dogg Bodyguard1\", \"Madd Dogg Bodyguard2\",
\"Backpacker\", \"Construction Worker1\", \"Drug Dealer1\", \"Drug Dealer2\", \"Drug Dealer3\",
\"Farm Town inhabitant1\", \"Farm Town inhabitant2\", \"Farm Town inhabitant3\", \"Farm Town inhabitant4\",
\"Gardener\", \"Golfer1\", \"Golfer2\", \"Normal Ped(5)\", \"Normal Ped(6)\", \"Normal Ped(7)\",
\"Normal Ped(8)\", \"Jethro\", \"Normal Ped(9)\", \"Normal Ped(10)\", \"Beach Visitor(M)2\",
\"Normal Ped(11)\", \"Normal Ped(12)\", \"Normal Ped(13)\", \"Snakehead (Da Nang)\", \"Mechanic\",
\"Mountain Biker1\", \"Mountain Biker2\", \"Unknown\", \"Normal Ped(14)\", \"Normal Ped(15)\",
\"Normal Ped(16)\", \"Feds\", \"Normal Ped(17)\", \"Normal Ped(18)\", \"Normal Ped(19)\", \"Pilot\",
\"Colonel Fuhrberger\", \"Prostitute1\", \"Prostitute2\", \"Kendl Johnson\",
\"Pool Player1\", \"Pool Player2\", \"Priest(Preacher)\", \"Normal Ped(20)\", \"Scientist\",
\"Security Guard\", \"Hippy1\", \"Hippy2\", \"INVALID SKIN\", \"Prostitute3\", \"Normal Ped(21)\", \"Homeless1\",//skin id 74 is invalid
\"Homeless2\", \"Homeless3\", \"Boxer1\", \"Boxer2\", \"Black Elvis\", \"White Elvis\", \"Blue Elvis\",
\"Prostitute4\", \"Ryder (With Robbery Mask)\", \"Stripper1\", \"Normal Ped(22)\",
\"Normal Ped(23)\", \"Jogger(F)\", \"Rich Woman2\", \"Roller Skater(F)\", \"Normal Ped(24)\", \"Normal Ped(25)\",
\"Normal Ped(26)\", \"Jogger(M)\", \"Lifeguard(M)\", \"Normal Ped(27)\", \"Roller Skater(M)\",
\"Biker1\", \"Normal Ped(28)\", \"Ballas1\", \"Ballas2\", \"Ballas3\", \"Grove Street Families1\",
\"Grove Street Families2\", \"Grove Street Families3\", \"Los Santos Vagos1\",
\"Los Santos Vagos2\", \"Los Santos Vagos3\", \"The Russian Mafia1\", \"The Russian Mafia2\",
\"The Russian Mafia3\", \"Varios Los Aztecas1\", \"Varios Los Aztecas2\",
\"Varios Los Aztecas3\", \"Triad1\", \"Triad2\", \"Johhny Sindacco\", \"Triad Boss\",
\"Da Nang Boy1\", \"Da Nang Boy2\", \"Da Nang Boy3\", \"The Mafia1\", \"The Mafia2\", \"The Mafia3\",
\"The Mafia4\", \"Farm Inhabitant1\", \"Farm Inhabitant2\", \"Farm Inhabitant3\", \"Farm Inhabitant4\",
\"Farm Inhabitant5\", \"Farm Inhabitant6\", \"Homeless4\", \"Homeless5\", \"Normal Ped(29)\",
\"Homeless6\", \"Beach Visitor(F)3\", \"Beach Visitor(F)4\", \"Beach Visitor(F)5\", \"BuisnessWoman\",
\"Taxi Driver\", \"Crack Maker(M)1\", \"Crack Maker(M)2\", \"Crack Maker(F)3\", \"Crack Maker(M)4\",
\"Buisnessman2\", \"BuisnessWoman2\", \"Big Smoke Armored\", \"BuisnessWoman3\",
\"Normal Ped(30)\", \"Prostitute5\", \"Construction Worker2\", \"Beach Visitor(M)6\",
\"Well Stacked Pizza Worker\", \"Barber1\", \"Hillbilly(F)1\", \"Farmer1\", \"Hillybilly(M)2\",
\"Hillbilly(M)3\", \"Farmer2\", \"Hillbilly(M)4\", \"Black Bouncer\",
\"Whiter Bouncer\", \"White MIB agent\", \"Black MIB agent\", \"Cluckin\' Bell Worker\",
\"Hotdog(Chilli Dog Vendor)\", \"Normal Ped(31)\", \"Normal Ped(32)\", \"Blackjack Dealer\", \"Casino croupier2\",
\"San Fierro Rifa1\", \"San Fierro Rifa2\", \"San Fierro Rifa3\", \"Barber2\", \"Barber3\",
\"Whore\", \"Ammunation Salesman\", \"Tattoo Artist\", \"Punk\", \"Cab Driver1\", \"Normal Ped(33)\",
\"Normal Ped(34)\", \"Normal Ped(35)\", \"Normal Ped(36)\", \"Buisnessman3\", \"Normal Ped(37)\", \"Valet\",
\"Barbara Schternvart\", \"Helena Wankstein\", \"Michelle Cannes\", \"Katie Zhan\",
\"Millie Perkins\", \"Denise Robinson\", \"Farm-Town inhabitant(F)1\", \"Hillbilly(F)5\",
\"Farm-Town inhabitant(F)2\", \"Farm-Town inhabitant(F)3\", \"Hillbilly(M)6\", \"Farmer3\",
\"Farmer4\", \"Karate Teacher1\", \"Karate Teacher2\", \"Burger Shot Cashier\", \"Cab Driver2\",
\"Prostitute6\", \"Su Xi Mu (Suzie)\", \"Noodle stand vendor\", \"Boater\", \"Clothes shop staff(F)1\",
\"Homeless7\", \"Weird old man\", \"Waitress (Maria Latore)\", \"Normal Ped(38)\", \"Normal Ped(39)\",
\"Clothes shop staff(M)2\", \"Normal Ped(40)\", \"Rich Woman3\", \"Cab Driver3\", \"Normal Ped(41)\", \"Normal Ped(42)\",
\"Normal Ped(43)\", \"Normal Ped(44)\", \"Normal Ped(45)\", \"Normal Ped(46)\", \"Buisnessman4\", \"Normal Ped(47)\",
\"Normal Ped(48)\", \"Homeless8\", \"Normal Ped(49)\", \"Normal Ped(50)\", \"Normal Ped(51)\", \"Cab Driver4\",
\"Normal Ped(52)\", \"Normal Ped(53)\", \"Prostitute7\", \"Prostitute8\", \"Homeless9\", \"The D.A\",
\"Afro American\", \"Mexican\", \"Prostitute9\", \"Stripper2\", \"Prostitute10\", \"Stripper3\",
\"Biker2\", \"Biker3\", \"Pimp\", \"Normal Ped(54)\", \"Lifeguard(F)\", \"Naked Valet\", \"Bus Driver\",
\"Biker Drug Dealer\", \"Chauffeur (Limo Driver)\", \"Stripper4\", \"Stripper5\", \"Heckler1\", \"Heckler2\",
\"Construction Worker3\", \"Cab Driver5\", \"Cab Driver6\", \"Normal Ped(55)\", \"Clown\",
\"Officer Frank Tenpenny(Corrupt Cop)\", \"Officer Eddie Pulaski (Corrupt Cop)\",
\"Officer Jimmy Hernandez\", \"Dwaine/Dwayne\", \"BigSmoke-Melvin Harris\", \"Sean \'Sweet\' Johnson\",
\"Lance \'Ryder\' Wilson\", \"Mafia Boss\", \"T-Bone Mendez\", \"Paramedic (Emergency Medical Technician)1\",
\"Paramedic (Emergency Medical Technician)2\", \"Paramedic (Emergency Medical Technician)3\",
\"Firefighter1\", \"Firefighter2\", \"Firefighter3\", \"Los Santos Police Officer\",
\"San Fierro Police Officer\", \"Las Venturas Police Officer\", \"County Sheriff\", \"LSPD Motorbike Cop\",
\"S.W.A.T Special Forces\", \"Federal Agent\", \"San Andreas Army\", \"Desert Sheriff\", \"Zero\",
\"Ken Rosenberg\", \"Kent Paul\", \"Cesar Vialpando\", \"OG LOC (Jeffery Martin Cross)\", \"Wu Zi Mu (Woozie)\",
\"Michael Toreno\", \"Jizzy B\", \"Madd Dogg\", \"Catalina\", \"Claude Speed\"
};
stock GetPlayerSkinName(playerid)
{
new PlayerSkinID;
PlayerSkinID = GetPlayerSkin(playerid);
PlayerSkinID -= 0;
return PlayerSkinName[PlayerSkinID];
}

 
CODE:
 
#include <a_samp>
#include <zcmd>
CMD:skin(playerid, params[]) {
new SkinID;
SkinID = GetPlayerSkin(playerid);
if(sscanf(params, \"i\", SkinID)) return SendClientMessage(playerid, -1, \"Használat: /skin [skin ID]\");
if(SkinID < 0 || SkinID > 300) return SendClientMessage(playerid, -1, \"Hiba! 0 - 300 között!\");
if(IsPlayerConnected(playerid))
{
SetPlayerSkin(playerid, SkinID);
new str[256]; format(str, sizeof str, \"Skinned megváltoztatva! SKinned neve: %s\", GetPlayerSkinName(playerid));
SendClientMessage(playerid, -1, str);
}
return 1;
}
« Utoljára szerkesztve: 2012. június 23. - 22:14:14 írta Flash »

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Skin Name
« Válasz #1 Dátum: 2012. június 23. - 23:01:50 »
0 Show voters
Szép lett rokkant fivérem (:

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Skin Name
« Válasz #2 Dátum: 2012. június 23. - 23:16:45 »
0 Show voters
Oh, kösz, tanítványom. :D

Nem elérhető Dead

  • 2045
    • Profil megtekintése
Skin Name
« Válasz #3 Dátum: 2012. június 24. - 07:43:39 »
0 Show voters
Idézetet írta: ZzzzzZ date=1340485310\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"23276\" data-ipsquote-contentclass=\"forums_Topic
Szép lett rokkant fivérem (:
 
off: jó a csajod ;D (aláírásodba)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal