Author Topic: How to put skin name?  (Read 8693 times)

0 Members and 1 Guest are viewing this topic.

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
How to put skin name?
« on: July 29, 2011, 06:47:00 am »
The title explains 50% of it..


I tried Gups gSkin not working..
I'm beginning to feel like a Lag God, Lag God

Offline Madara

  • Street Thug
  • *
  • Posts: 48
    • View Profile
Re: How to put skin name?
« Reply #1 on: July 29, 2011, 09:35:28 am »
The title explains 50% of it..


I tried Gups gSkin not working..

If you like, use this:

Code: [Select]
stock GetNameFromSkinID(skinid)
{
    new skin[256];
    if (skinid == 0) skin = "Tommy Vercetti";
    if (skinid == 1) skin = "Cop";
    if (skinid == 2) skin = "Swat";
    if (skinid == 3) skin = "FBI";
    if (skinid == 4) skin = "Army";
    if (skinid == 5) skin = "Paramedic";
    if (skinid == 6) skin = "Fireman";
    if (skinid == 7) skin = "Golf guy #1";
    if (skinid == 9) skin = "Bum lady #1";
    if (skinid == 10) skin = "Bum lady #2";
    if (skinid == 11) skin = "Punk #1";
    if (skinid == 12) skin = "Lawyer";
    if (skinid == 13) skin = "Spanish lady #1";
    if (skinid == 14) skin = "Spanish lady #2";
    if (skinid == 15) skin = "Cool guy #1";
    if (skinid == 16) skin = "Arabic guy";
    if (skinid == 17) skin = "Beach lady #1";
    if (skinid == 18) skin = "Beach lady #2";
    if (skinid == 19) skin = "Beach guy #1";
    if (skinid == 20) skin = "Beach guy #2";
    if (skinid == 21) skin = "Office lady #1";
    if (skinid == 22) skin = "Waitress #1";
    if (skinid == 23) skin = "Food lady";
    if (skinid == 24) skin = "Prostitue #1";
    if (skinid == 25) skin = "Bum lady #2";
    if (skinid == 26) skin = "Bum guy #1";
    if (skinid == 27) skin = "Garbageman #1";
    if (skinid == 28) skin = "Taxi driver #1";
    if (skinid == 29) skin = "Hatian #1";
    if (skinid == 30) skin = "Criminal #1";
    if (skinid == 31) skin = "Hood lady";
    if (skinid == 32) skin = "Granny #1";
    if (skinid == 33) skin = "Business man #1";
    if (skinid == 34) skin = "Church guy";
    if (skinid == 35) skin = "Club lady";
    if (skinid == 36) skin = "Church lady";
    if (skinid == 37) skin = "Pimp";
    if (skinid == 38) skin = "Beach lady #3";
    if (skinid == 39) skin = "Beach guy #3";
    if (skinid == 40) skin = "Beach lady #4";
    if (skinid == 41) skin = "Beach guy #4";
    if (skinid == 42) skin = "Business man #2";
    if (skinid == 43) skin = "Prostitute #2";
    if (skinid == 44) skin = "Bum lady #3";
    if (skinid == 45) skin = "Bum guy #2";
    if (skinid == 46) skin = "Hatian #2";
    if (skinid == 47) skin = "Construction worker #1";
    if (skinid == 48) skin = "Punk #2";
    if (skinid == 49) skin = "Prostitute #2";
    if (skinid == 50) skin = "Granny #2";
    if (skinid == 51) skin = "Punk #3";
    if (skinid == 52) skin = "Business man #3";
    if (skinid == 53) skin = "Spanish lady #3";
    if (skinid == 54) skin = "Spanish lady #4";
    if (skinid == 55) skin = "Cool guy #2";
    if (skinid == 56) skin = "Business man #4";
    if (skinid == 57) skin = "Beach lady #5";
    if (skinid == 58) skin = "Beach guy #5";
    if (skinid == 59) skin = "Beach lady #6";
    if (skinid == 60) skin = "Beach guy #6";
    if (skinid == 61) skin = "Construction worker #2";
    if (skinid == 62) skin = "Golf guy #2";
    if (skinid == 63) skin = "Golf lady";
    if (skinid == 64) skin = "Golf guy #3";
    if (skinid == 65) skin = "Beach lady #7";
    if (skinid == 66) skin = "Beach guy #7";
    if (skinid == 67) skin = "Office lady #2";
    if (skinid == 68) skin = "Business man #5";
    if (skinid == 69) skin = "Business man #6";
    if (skinid == 70) skin = "Prostitute #2";
    if (skinid == 71) skin = "Bum lady #4";
    if (skinid == 72) skin = "Bum guy #3";
    if (skinid == 73) skin = "Spanish guy";
    if (skinid == 74) skin = "Taxi driver #2";
    if (skinid == 75) skin = "Gym lady";
    if (skinid == 76) skin = "Gym guy";
    if (skinid == 77) skin = "Skate lady";
    if (skinid == 78) skin = "Skate guy";
    if (skinid == 79) skin = "Shopper #1";
    if (skinid == 80) skin = "Shopper #2";
    if (skinid == 81) skin = "Tourist #1";
    if (skinid == 82) skin = "Tourist #2";
    if (skinid == 83) skin = "Cuban #1";
    if (skinid == 84) skin = "Cuban #2";
    if (skinid == 85) skin = "Hatian #3";
    if (skinid == 86) skin = "Hatian #4";
    if (skinid == 87) skin = "Shark #1";
    if (skinid == 88) skin = "Shark #2";
    if (skinid == 89) skin = "Diaz guy #1";
    if (skinid == 90) skin = "Diaz guy #2";
    if (skinid == 91) skin = "DBP security #1";
    if (skinid == 92) skin = "DBP security #2";
    if (skinid == 93) skin = "Biker #1";
    if (skinid == 94) skin = "Biker #2";
    if (skinid == 95) skin = "Vercetti guy #1";
    if (skinid == 96) skin = "Vercetti guy #2";
    if (skinid == 97) skin = "Undercover cop #1";
    if (skinid == 98) skin = "Undercover cop #2";
    if (skinid == 99) skin = "Undercover cop #3";
    if (skinid == 100) skin = "Undercover cop #4";
    if (skinid == 101) skin = "Undercover cop #5";
    if (skinid == 102) skin = "Undercover cop #6";
    if (skinid == 103) skin = "Rich guy";
    if (skinid == 104) skin = "Cool guy #3";
    if (skinid == 105) skin = "Prostitute #3";
    if (skinid == 106) skin = "Prostitute #4";
    if (skinid == 107) skin = "Love Fist #1";
    if (skinid == 108) skin = "Ken Rosenburg";
    if (skinid == 109) skin = "Candy Suxx";
    if (skinid == 110) skin = "Hilary";
    if (skinid == 111) skin = "Love Fist #2";
    if (skinid == 112) skin = "Phil";
    if (skinid == 113) skin = "Rockstar guy";
    if (skinid == 114) skin = "Sonny";
    if (skinid == 115) skin = "Lance";
    if (skinid == 116) skin = "Mercades";
    if (skinid == 117) skin = "Love Fist #3";
    if (skinid == 118) skin = "Alex Srub";
    if (skinid == 119) skin = "Lance (Cop)";
    if (skinid == 120) skin = "Lance";
    if (skinid == 121) skin = "Cortez";
    if (skinid == 122) skin = "Love Fist #3";
    if (skinid == 123) skin = "Columbian guy #1";
    if (skinid == 124) skin = "Hilary (Robber)";
    if (skinid == 125) skin = "Mercades";
    if (skinid == 126) skin = "Cam";
    if (skinid == 127) skin = "Cam (Robber)";
    if (skinid == 128) skin = "Phil (One arm)";
    if (skinid == 129) skin = "Phil (Robber)";
    if (skinid == 130) skin = "Cool guy #4";
    if (skinid == 131) skin = "Pizzaman";
    if (skinid == 132) skin = "Taxi driver #1";
    if (skinid == 133) skin = "Taxi driver #2";
    if (skinid == 134) skin = "Sailor #1";
    if (skinid == 135) skin = "Sailor #2";
    if (skinid == 136) skin = "Sailor #3";
    if (skinid == 137) skin = "Chef";
    if (skinid == 138) skin = "Criminal #2";
    if (skinid == 139) skin = "French guy";
    if (skinid == 140) skin = "Garbageman #2";
    if (skinid == 141) skin = "Hatian #5";
    if (skinid == 142) skin = "Waitress #2";
    if (skinid == 143) skin = "Sonny guy #1";
    if (skinid == 144) skin = "Sonny guy #2";
    if (skinid == 145) skin = "Sonny guy #3";
    if (skinid == 146) skin = "Columbian guy #2";
    if (skinid == 147) skin = "Thug #1";
    if (skinid == 148) skin = "Beach guy #8";
    if (skinid == 149) skin = "Garbageman #3";
    if (skinid == 150) skin = "Garbageman #4";
    if (skinid == 151) skin = "Garbageman #5";
    if (skinid == 152) skin = "Tranny";
    if (skinid == 153) skin = "Thug #5";
    if (skinid == 154) skin = "SpandEx guy #1";
    if (skinid == 155) skin = "SpandEx guy #2";
    if (skinid == 156) skin = "Stripper #1";
    if (skinid == 157) skin = "Stripper #2";
    if (skinid == 158) skin = "Stripper #3";
    if (skinid == 159) skin = "Store clerk";
    return skin;
}

Hope this helps, greetings  :).

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: How to put skin name?
« Reply #2 on: July 29, 2011, 04:06:39 pm »
Must I put this at the bottom of the script? Anyway Thanx
I'm beginning to feel like a Lag God, Lag God

Offline OutlawZ

  • Wiseguy
  • **
  • Posts: 51
    • View Profile
Re: How to put skin name?
« Reply #3 on: July 29, 2011, 06:31:31 pm »
The title explains 50% of it..


I tried Gups gSkin not working..

If you like, use this:

Code: [Select]
stock GetNameFromSkinID(skinid)
{
    new skin[256];
    if (skinid == 0) skin = "Tommy Vercetti";
    if (skinid == 1) skin = "Cop";
    if (skinid == 2) skin = "Swat";
    if (skinid == 3) skin = "FBI";
    if (skinid == 4) skin = "Army";
    if (skinid == 5) skin = "Paramedic";
    if (skinid == 6) skin = "Fireman";
    if (skinid == 7) skin = "Golf guy #1";
    if (skinid == 9) skin = "Bum lady #1";
    if (skinid == 10) skin = "Bum lady #2";
    if (skinid == 11) skin = "Punk #1";
    if (skinid == 12) skin = "Lawyer";
    if (skinid == 13) skin = "Spanish lady #1";
    if (skinid == 14) skin = "Spanish lady #2";
    if (skinid == 15) skin = "Cool guy #1";
    if (skinid == 16) skin = "Arabic guy";
    if (skinid == 17) skin = "Beach lady #1";
    if (skinid == 18) skin = "Beach lady #2";
    if (skinid == 19) skin = "Beach guy #1";
    if (skinid == 20) skin = "Beach guy #2";
    if (skinid == 21) skin = "Office lady #1";
    if (skinid == 22) skin = "Waitress #1";
    if (skinid == 23) skin = "Food lady";
    if (skinid == 24) skin = "Prostitue #1";
    if (skinid == 25) skin = "Bum lady #2";
    if (skinid == 26) skin = "Bum guy #1";
    if (skinid == 27) skin = "Garbageman #1";
    if (skinid == 28) skin = "Taxi driver #1";
    if (skinid == 29) skin = "Hatian #1";
    if (skinid == 30) skin = "Criminal #1";
    if (skinid == 31) skin = "Hood lady";
    if (skinid == 32) skin = "Granny #1";
    if (skinid == 33) skin = "Business man #1";
    if (skinid == 34) skin = "Church guy";
    if (skinid == 35) skin = "Club lady";
    if (skinid == 36) skin = "Church lady";
    if (skinid == 37) skin = "Pimp";
    if (skinid == 38) skin = "Beach lady #3";
    if (skinid == 39) skin = "Beach guy #3";
    if (skinid == 40) skin = "Beach lady #4";
    if (skinid == 41) skin = "Beach guy #4";
    if (skinid == 42) skin = "Business man #2";
    if (skinid == 43) skin = "Prostitute #2";
    if (skinid == 44) skin = "Bum lady #3";
    if (skinid == 45) skin = "Bum guy #2";
    if (skinid == 46) skin = "Hatian #2";
    if (skinid == 47) skin = "Construction worker #1";
    if (skinid == 48) skin = "Punk #2";
    if (skinid == 49) skin = "Prostitute #2";
    if (skinid == 50) skin = "Granny #2";
    if (skinid == 51) skin = "Punk #3";
    if (skinid == 52) skin = "Business man #3";
    if (skinid == 53) skin = "Spanish lady #3";
    if (skinid == 54) skin = "Spanish lady #4";
    if (skinid == 55) skin = "Cool guy #2";
    if (skinid == 56) skin = "Business man #4";
    if (skinid == 57) skin = "Beach lady #5";
    if (skinid == 58) skin = "Beach guy #5";
    if (skinid == 59) skin = "Beach lady #6";
    if (skinid == 60) skin = "Beach guy #6";
    if (skinid == 61) skin = "Construction worker #2";
    if (skinid == 62) skin = "Golf guy #2";
    if (skinid == 63) skin = "Golf lady";
    if (skinid == 64) skin = "Golf guy #3";
    if (skinid == 65) skin = "Beach lady #7";
    if (skinid == 66) skin = "Beach guy #7";
    if (skinid == 67) skin = "Office lady #2";
    if (skinid == 68) skin = "Business man #5";
    if (skinid == 69) skin = "Business man #6";
    if (skinid == 70) skin = "Prostitute #2";
    if (skinid == 71) skin = "Bum lady #4";
    if (skinid == 72) skin = "Bum guy #3";
    if (skinid == 73) skin = "Spanish guy";
    if (skinid == 74) skin = "Taxi driver #2";
    if (skinid == 75) skin = "Gym lady";
    if (skinid == 76) skin = "Gym guy";
    if (skinid == 77) skin = "Skate lady";
    if (skinid == 78) skin = "Skate guy";
    if (skinid == 79) skin = "Shopper #1";
    if (skinid == 80) skin = "Shopper #2";
    if (skinid == 81) skin = "Tourist #1";
    if (skinid == 82) skin = "Tourist #2";
    if (skinid == 83) skin = "Cuban #1";
    if (skinid == 84) skin = "Cuban #2";
    if (skinid == 85) skin = "Hatian #3";
    if (skinid == 86) skin = "Hatian #4";
    if (skinid == 87) skin = "Shark #1";
    if (skinid == 88) skin = "Shark #2";
    if (skinid == 89) skin = "Diaz guy #1";
    if (skinid == 90) skin = "Diaz guy #2";
    if (skinid == 91) skin = "DBP security #1";
    if (skinid == 92) skin = "DBP security #2";
    if (skinid == 93) skin = "Biker #1";
    if (skinid == 94) skin = "Biker #2";
    if (skinid == 95) skin = "Vercetti guy #1";
    if (skinid == 96) skin = "Vercetti guy #2";
    if (skinid == 97) skin = "Undercover cop #1";
    if (skinid == 98) skin = "Undercover cop #2";
    if (skinid == 99) skin = "Undercover cop #3";
    if (skinid == 100) skin = "Undercover cop #4";
    if (skinid == 101) skin = "Undercover cop #5";
    if (skinid == 102) skin = "Undercover cop #6";
    if (skinid == 103) skin = "Rich guy";
    if (skinid == 104) skin = "Cool guy #3";
    if (skinid == 105) skin = "Prostitute #3";
    if (skinid == 106) skin = "Prostitute #4";
    if (skinid == 107) skin = "Love Fist #1";
    if (skinid == 108) skin = "Ken Rosenburg";
    if (skinid == 109) skin = "Candy Suxx";
    if (skinid == 110) skin = "Hilary";
    if (skinid == 111) skin = "Love Fist #2";
    if (skinid == 112) skin = "Phil";
    if (skinid == 113) skin = "Rockstar guy";
    if (skinid == 114) skin = "Sonny";
    if (skinid == 115) skin = "Lance";
    if (skinid == 116) skin = "Mercades";
    if (skinid == 117) skin = "Love Fist #3";
    if (skinid == 118) skin = "Alex Srub";
    if (skinid == 119) skin = "Lance (Cop)";
    if (skinid == 120) skin = "Lance";
    if (skinid == 121) skin = "Cortez";
    if (skinid == 122) skin = "Love Fist #3";
    if (skinid == 123) skin = "Columbian guy #1";
    if (skinid == 124) skin = "Hilary (Robber)";
    if (skinid == 125) skin = "Mercades";
    if (skinid == 126) skin = "Cam";
    if (skinid == 127) skin = "Cam (Robber)";
    if (skinid == 128) skin = "Phil (One arm)";
    if (skinid == 129) skin = "Phil (Robber)";
    if (skinid == 130) skin = "Cool guy #4";
    if (skinid == 131) skin = "Pizzaman";
    if (skinid == 132) skin = "Taxi driver #1";
    if (skinid == 133) skin = "Taxi driver #2";
    if (skinid == 134) skin = "Sailor #1";
    if (skinid == 135) skin = "Sailor #2";
    if (skinid == 136) skin = "Sailor #3";
    if (skinid == 137) skin = "Chef";
    if (skinid == 138) skin = "Criminal #2";
    if (skinid == 139) skin = "French guy";
    if (skinid == 140) skin = "Garbageman #2";
    if (skinid == 141) skin = "Hatian #5";
    if (skinid == 142) skin = "Waitress #2";
    if (skinid == 143) skin = "Sonny guy #1";
    if (skinid == 144) skin = "Sonny guy #2";
    if (skinid == 145) skin = "Sonny guy #3";
    if (skinid == 146) skin = "Columbian guy #2";
    if (skinid == 147) skin = "Thug #1";
    if (skinid == 148) skin = "Beach guy #8";
    if (skinid == 149) skin = "Garbageman #3";
    if (skinid == 150) skin = "Garbageman #4";
    if (skinid == 151) skin = "Garbageman #5";
    if (skinid == 152) skin = "Tranny";
    if (skinid == 153) skin = "Thug #5";
    if (skinid == 154) skin = "SpandEx guy #1";
    if (skinid == 155) skin = "SpandEx guy #2";
    if (skinid == 156) skin = "Stripper #1";
    if (skinid == 157) skin = "Stripper #2";
    if (skinid == 158) skin = "Stripper #3";
    if (skinid == 159) skin = "Store clerk";
    return skin;
}

Hope this helps, greetings  :).
256? :S

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: How to put skin name?
« Reply #4 on: July 29, 2011, 06:46:56 pm »
Whats wrong? please help..
I'm beginning to feel like a Lag God, Lag God

yazeen

  • Guest
Re: How to put skin name?
« Reply #5 on: August 01, 2011, 04:43:05 pm »
Whats wrong? please help..

Yes, put it on bottom of your script and onplayerrequestclass section add this

   new szMsg[ 64 ];
   format( szMsg, 64, "~h~ %s", GetNameFromSkinID(gSkins[ skinid ]) );
   GameTextForPlayerBottom( playerid, szMsg );

if you wanna add your on skin names:

[pawn]stock GetNameFromSkinID(skinid)
{
    new skin[256];
    if (skinid == 0) skin = "Tommy Vercetti";
    if (skinid == 1) skin = "Cop";
    if (skinid == 2) skin = "Swat";
    if (skinid == 3) skin = "FBI";
    if (skinid == 4) skin = "Army";
    if (skinid == 5) skin = "Paramedic";
    if (skinid == 6) skin = "Fireman";
    if (skinid == 7) skin = "Golf guy #1";
    if (skinid == 9) skin = "Bum lady #1";
    if (skinid == 10) skin = "Bum lady #2";
    if (skinid == 11) skin = "Punk #1";
    if (skinid == 12) skin = "Lawyer";
    if (skinid == 13) skin = "Spanish lady #1";
    if (skinid == 14) skin = "Spanish lady #2";
    if (skinid == 15) skin = "Cool guy #1";
    if (skinid == 16) skin = "Arabic guy";
    if (skinid == 17) skin = "Beach lady #1";
    if (skinid == 18) skin = "Beach lady #2";
    if (skinid == 19) skin = "Beach guy #1";
    if (skinid == 20) skin = "Beach guy #2";
    if (skinid == 21) skin = "Office lady #1";
    if (skinid == 22) skin = "Waitress #1";
    if (skinid == 23) skin = "Food lady";
    if (skinid == 24) skin = "Prostitue #1";
    if (skinid == 25) skin = "Bum lady #2";
    if (skinid == 26) skin = "Bum guy #1";
    if (skinid == 27) skin = "Garbageman #1";
    if (skinid == 28) skin = "Taxi driver #1";
    if (skinid == 29) skin = "Hatian #1";
    if (skinid == 30) skin = "Criminal #1";
    if (skinid == 31) skin = "Hood lady";
    if (skinid == 32) skin = "Granny #1";
    if (skinid == 33) skin = "Business man #1";
    if (skinid == 34) skin = "Church guy";
    if (skinid == 35) skin = "Club lady";
    if (skinid == 36) skin = "Church lady";
    if (skinid == 37) skin = "Pimp";
    if (skinid == 38) skin = "Beach lady #3";
    if (skinid == 39) skin = "Beach guy #3";
    if (skinid == 40) skin = "Beach lady #4";
    if (skinid == 41) skin = "Beach guy #4";
    if (skinid == 42) skin = "Business man #2";
    if (skinid == 43) skin = "Prostitute #2";
    if (skinid == 44) skin = "Bum lady #3";
    if (skinid == 45) skin = "Bum guy #2";
    if (skinid == 46) skin = "Hatian #2";
    if (skinid == 47) skin = "Construction worker #1";
    if (skinid == 48) skin = "Punk #2";
    if (skinid == 49) skin = "Prostitute #2";
    if (skinid == 50) skin = "Granny #2";
    if (skinid == 51) skin = "Punk #3";
    if (skinid == 52) skin = "Business man #3";
    if (skinid == 53) skin = "Spanish lady #3";
    if (skinid == 54) skin = "Spanish lady #4";
    if (skinid == 55) skin = "Cool guy #2";
    if (skinid == 56) skin = "Business man #4";
    if (skinid == 57) skin = "Beach lady #5";
    if (skinid == 58) skin = "Beach guy #5";
    if (skinid == 59) skin = "Beach lady #6";
    if (skinid == 60) skin = "Beach guy #6";
    if (skinid == 61) skin = "Construction worker #2";
    if (skinid == 62) skin = "Golf guy #2";
    if (skinid == 63) skin = "Golf lady";
    if (skinid == 64) skin = "Golf guy #3";
    if (skinid == 65) skin = "Beach lady #7";
    if (skinid == 66) skin = "Beach guy #7";
    if (skinid == 67) skin = "Office lady #2";
    if (skinid == 68) skin = "Business man #5";
    if (skinid == 69) skin = "Business man #6";
    if (skinid == 70) skin = "Prostitute #2";
    if (skinid == 71) skin = "Bum lady #4";
    if (skinid == 72) skin = "Bum guy #3";
    if (skinid == 73) skin = "Spanish guy";
    if (skinid == 74) skin = "Taxi driver #2";
    if (skinid == 75) skin = "Gym lady";
    if (skinid == 76) skin = "Gym guy";
    if (skinid == 77) skin = "Skate lady";
    if (skinid == 78) skin = "Skate guy";
    if (skinid == 79) skin = "Shopper #1";
    if (skinid == 80) skin = "Shopper #2";
    if (skinid == 81) skin = "Tourist #1";
    if (skinid == 82) skin = "Tourist #2";
    if (skinid == 83) skin = "Cuban #1";
    if (skinid == 84) skin = "Cuban #2";
    if (skinid == 85) skin = "Hatian #3";
    if (skinid == 86) skin = "Hatian #4";
    if (skinid == 87) skin = "Shark #1";
    if (skinid == 88) skin = "Shark #2";
    if (skinid == 89) skin = "Diaz guy #1";
    if (skinid == 90) skin = "Diaz guy #2";
    if (skinid == 91) skin = "DBP security #1";
    if (skinid == 92) skin = "DBP security #2";
    if (skinid == 93) skin = "Biker #1";
    if (skinid == 94) skin = "Biker #2";
    if (skinid == 95) skin = "Vercetti guy #1";
    if (skinid == 96) skin = "Vercetti guy #2";
    if (skinid == 97) skin = "Undercover cop #1";
    if (skinid == 98) skin = "Undercover cop #2";
    if (skinid == 99) skin = "Undercover cop #3";
    if (skinid == 100) skin = "Undercover cop #4";
    if (skinid == 101) skin = "Undercover cop #5";
    if (skinid == 102) skin = "Undercover cop #6";
    if (skinid == 103) skin = "Rich guy";
    if (skinid == 104) skin = "Cool guy #3";
    if (skinid == 105) skin = "Prostitute #3";
    if (skinid == 106) skin = "Prostitute #4";
    if (skinid == 107) skin = "Love Fist #1";
    if (skinid == 108) skin = "Ken Rosenburg";
    if (skinid == 109) skin = "Candy Suxx";
    if (skinid == 110) skin = "Hilary";
    if (skinid == 111) skin = "Love Fist #2";
    if (skinid == 112) skin = "Phil";
    if (skinid == 113) skin = "Rockstar guy";
    if (skinid == 114) skin = "Sonny";
    if (skinid == 115) skin = "Lance";
    if (skinid == 116) skin = "Mercades";
    if (skinid == 117) skin = "Love Fist #3";
    if (skinid == 118) skin = "Alex Srub";
    if (skinid == 119) skin = "Lance (Cop)";
    if (skinid == 120) skin = "Lance";
    if (skinid == 121) skin = "Cortez";
    if (skinid == 122) skin = "Love Fist #3";
    if (skinid == 123) skin = "Columbian guy #1";
    if (skinid == 124) skin = "Hilary (Robber)";
    if (skinid == 125) skin = "Mercades";
    if (skinid == 126) skin = "Cam";
    if (skinid == 127) skin = "Cam (Robber)";
    if (skinid == 128) skin = "Phil (One arm)";
    if (skinid == 129) skin = "Phil (Robber)";
    if (skinid == 130) skin = "Cool guy #4";
    if (skinid == 131) skin = "Pizzaman";
    if (skinid == 132) skin = "Taxi driver #1";
    if (skinid == 133) skin = "Taxi driver #2";
    if (skinid == 134) skin = "Sailor #1";
    if (skinid == 135) skin = "Sailor #2";
    if (skinid == 136) skin = "Sailor #3";
    if (skinid == 137) skin = "Chef";
    if (skinid == 138) skin = "Criminal #2";
    if (skinid == 139) skin = "French guy";
    if (skinid == 140) skin = "Garbageman #2";
    if (skinid == 141) skin = "Hatian #5";
    if (skinid == 142) skin = "Waitress #2";
    if (skinid == 143) skin = "Sonny guy #1";
    if (skinid == 144) skin = "Sonny guy #2";
    if (skinid == 145) skin = "Sonny guy #3";
    if (skinid == 146) skin = "Columbian guy #2";
    if (skinid == 147) skin = "Thug #1";
    if (skinid == 148) skin = "Beach guy #8";
    if (skinid == 149) skin = "Garbageman #3";
    if (skinid == 150) skin = "Garbageman #4";
    if (skinid == 151) skin = "Garbageman #5";
    if (skinid == 152) skin = "Tranny";
    if (skinid == 153) skin = "Thug #5";
    if (skinid == 154) skin = "SpandEx guy #1";
    if (skinid == 155) skin = "SpandEx guy #2";
    if (skinid == 156) skin = "Stripper #1";
    if (skinid == 157) skin = "Stripper #2";
    if (skinid == 158) skin = "Stripper #3";
    if (skinid == 159) skin = "Store clerk";
    return skin;
}[/pawn]

USAGE: Change Skin = "blblablalb";

example: Skin ID 1 if Cop so if you want to change the name to NOOB,  Replace  [pawn]if (skinid == 1) skin = "Cop"; [/pawn] with    i[pawn]f (skinid == 1) skin = "NOOB"; [/pawn]

Hope it helped ya!

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: How to put skin name?
« Reply #6 on: August 01, 2011, 06:00:49 pm »
about the onplayerrequestclass, i thought that is Gups? gSkin?
I'm beginning to feel like a Lag God, Lag God

Offline (SZ)Naruto

  • Street Thug
  • *
  • Posts: 33
  • PCS | European ProJect Counter Strike Server
    • View Profile
Re: How to put skin name?
« Reply #7 on: August 01, 2011, 06:07:38 pm »
I Have Best Guide Leave Yazzen And All Listen This IN Gups U Have A Folder Called SkinID,s In Configuration In ScriptFiles Click SkinID,s Then Set Skin Name Thats All.This Guide Is For GUPS USERS.Hope U Like It.


Regards,
(SZ)Naruto

yazeen

  • Guest
Re: How to put skin name?
« Reply #8 on: August 01, 2011, 06:35:13 pm »
I Have Best Guide Leave Yazzen And All Listen This IN Gups U Have A Folder Called SkinID,s In Configuration In ScriptFiles Click SkinID,s Then Set Skin Name Thats All.This Guide Is For GUPS USERS.Hope U Like It.


Regards,
(SZ)Naruto
Do u think that works for all scripts? W-R-O-N-G

@Fuzzy: onplayerrequestclass is not for gups it can be used for all scripts.. i just gave you a guide for madara's Script if your using gups u can use what Naruto said......

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: How to put skin name?
« Reply #9 on: August 01, 2011, 06:48:29 pm »
oh ok thanx... an i am not using gups..
I'm beginning to feel like a Lag God, Lag God

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: How to put skin name?
« Reply #10 on: August 01, 2011, 06:53:30 pm »
[pawn]GetNameFromSkinID[/pawn]
What function is this? it give me an error?
I'm beginning to feel like a Lag God, Lag God

Offline (SZ)Naruto

  • Street Thug
  • *
  • Posts: 33
  • PCS | European ProJect Counter Strike Server
    • View Profile
Re: How to put skin name?
« Reply #11 on: August 01, 2011, 08:59:20 pm »
Thx Yazeen ;D

yazeen

  • Guest
Re: How to put skin name?
« Reply #12 on: August 02, 2011, 10:59:54 am »
[pawn]GetNameFromSkinID[/pawn]
What function is this? it give me an error?

That's the Main function. Add it on Bottom of your script

[pawn]stock GetNameFromSkinID(skinid)
{
    new skin[256];
    if (skinid == 0) skin = "Tommy Vercetti";
    if (skinid == 1) skin = "Cop";
    if (skinid == 2) skin = "Swat";
    if (skinid == 3) skin = "FBI";
    if (skinid == 4) skin = "Army";
    if (skinid == 5) skin = "Paramedic";
    if (skinid == 6) skin = "Fireman";
    if (skinid == 7) skin = "Golf guy #1";
    if (skinid == 9) skin = "Bum lady #1";
    if (skinid == 10) skin = "Bum lady #2";
    if (skinid == 11) skin = "Punk #1";
    if (skinid == 12) skin = "Lawyer";
    if (skinid == 13) skin = "Spanish lady #1";
    if (skinid == 14) skin = "Spanish lady #2";
    if (skinid == 15) skin = "Cool guy #1";
    if (skinid == 16) skin = "Arabic guy";
    if (skinid == 17) skin = "Beach lady #1";
    if (skinid == 18) skin = "Beach lady #2";
    if (skinid == 19) skin = "Beach guy #1";
    if (skinid == 20) skin = "Beach guy #2";
    if (skinid == 21) skin = "Office lady #1";
    if (skinid == 22) skin = "Waitress #1";
    if (skinid == 23) skin = "Food lady";
    if (skinid == 24) skin = "Prostitue #1";
    if (skinid == 25) skin = "Bum lady #2";
    if (skinid == 26) skin = "Bum guy #1";
    if (skinid == 27) skin = "Garbageman #1";
    if (skinid == 28) skin = "Taxi driver #1";
    if (skinid == 29) skin = "Hatian #1";
    if (skinid == 30) skin = "Criminal #1";
    if (skinid == 31) skin = "Hood lady";
    if (skinid == 32) skin = "Granny #1";
    if (skinid == 33) skin = "Business man #1";
    if (skinid == 34) skin = "Church guy";
    if (skinid == 35) skin = "Club lady";
    if (skinid == 36) skin = "Church lady";
    if (skinid == 37) skin = "Pimp";
    if (skinid == 38) skin = "Beach lady #3";
    if (skinid == 39) skin = "Beach guy #3";
    if (skinid == 40) skin = "Beach lady #4";
    if (skinid == 41) skin = "Beach guy #4";
    if (skinid == 42) skin = "Business man #2";
    if (skinid == 43) skin = "Prostitute #2";
    if (skinid == 44) skin = "Bum lady #3";
    if (skinid == 45) skin = "Bum guy #2";
    if (skinid == 46) skin = "Hatian #2";
    if (skinid == 47) skin = "Construction worker #1";
    if (skinid == 48) skin = "Punk #2";
    if (skinid == 49) skin = "Prostitute #2";
    if (skinid == 50) skin = "Granny #2";
    if (skinid == 51) skin = "Punk #3";
    if (skinid == 52) skin = "Business man #3";
    if (skinid == 53) skin = "Spanish lady #3";
    if (skinid == 54) skin = "Spanish lady #4";
    if (skinid == 55) skin = "Cool guy #2";
    if (skinid == 56) skin = "Business man #4";
    if (skinid == 57) skin = "Beach lady #5";
    if (skinid == 58) skin = "Beach guy #5";
    if (skinid == 59) skin = "Beach lady #6";
    if (skinid == 60) skin = "Beach guy #6";
    if (skinid == 61) skin = "Construction worker #2";
    if (skinid == 62) skin = "Golf guy #2";
    if (skinid == 63) skin = "Golf lady";
    if (skinid == 64) skin = "Golf guy #3";
    if (skinid == 65) skin = "Beach lady #7";
    if (skinid == 66) skin = "Beach guy #7";
    if (skinid == 67) skin = "Office lady #2";
    if (skinid == 68) skin = "Business man #5";
    if (skinid == 69) skin = "Business man #6";
    if (skinid == 70) skin = "Prostitute #2";
    if (skinid == 71) skin = "Bum lady #4";
    if (skinid == 72) skin = "Bum guy #3";
    if (skinid == 73) skin = "Spanish guy";
    if (skinid == 74) skin = "Taxi driver #2";
    if (skinid == 75) skin = "Gym lady";
    if (skinid == 76) skin = "Gym guy";
    if (skinid == 77) skin = "Skate lady";
    if (skinid == 78) skin = "Skate guy";
    if (skinid == 79) skin = "Shopper #1";
    if (skinid == 80) skin = "Shopper #2";
    if (skinid == 81) skin = "Tourist #1";
    if (skinid == 82) skin = "Tourist #2";
    if (skinid == 83) skin = "Cuban #1";
    if (skinid == 84) skin = "Cuban #2";
    if (skinid == 85) skin = "Hatian #3";
    if (skinid == 86) skin = "Hatian #4";
    if (skinid == 87) skin = "Shark #1";
    if (skinid == 88) skin = "Shark #2";
    if (skinid == 89) skin = "Diaz guy #1";
    if (skinid == 90) skin = "Diaz guy #2";
    if (skinid == 91) skin = "DBP security #1";
    if (skinid == 92) skin = "DBP security #2";
    if (skinid == 93) skin = "Biker #1";
    if (skinid == 94) skin = "Biker #2";
    if (skinid == 95) skin = "Vercetti guy #1";
    if (skinid == 96) skin = "Vercetti guy #2";
    if (skinid == 97) skin = "Undercover cop #1";
    if (skinid == 98) skin = "Undercover cop #2";
    if (skinid == 99) skin = "Undercover cop #3";
    if (skinid == 100) skin = "Undercover cop #4";
    if (skinid == 101) skin = "Undercover cop #5";
    if (skinid == 102) skin = "Undercover cop #6";
    if (skinid == 103) skin = "Rich guy";
    if (skinid == 104) skin = "Cool guy #3";
    if (skinid == 105) skin = "Prostitute #3";
    if (skinid == 106) skin = "Prostitute #4";
    if (skinid == 107) skin = "Love Fist #1";
    if (skinid == 108) skin = "Ken Rosenburg";
    if (skinid == 109) skin = "Candy Suxx";
    if (skinid == 110) skin = "Hilary";
    if (skinid == 111) skin = "Love Fist #2";
    if (skinid == 112) skin = "Phil";
    if (skinid == 113) skin = "Rockstar guy";
    if (skinid == 114) skin = "Sonny";
    if (skinid == 115) skin = "Lance";
    if (skinid == 116) skin = "Mercades";
    if (skinid == 117) skin = "Love Fist #3";
    if (skinid == 118) skin = "Alex Srub";
    if (skinid == 119) skin = "Lance (Cop)";
    if (skinid == 120) skin = "Lance";
    if (skinid == 121) skin = "Cortez";
    if (skinid == 122) skin = "Love Fist #3";
    if (skinid == 123) skin = "Columbian guy #1";
    if (skinid == 124) skin = "Hilary (Robber)";
    if (skinid == 125) skin = "Mercades";
    if (skinid == 126) skin = "Cam";
    if (skinid == 127) skin = "Cam (Robber)";
    if (skinid == 128) skin = "Phil (One arm)";
    if (skinid == 129) skin = "Phil (Robber)";
    if (skinid == 130) skin = "Cool guy #4";
    if (skinid == 131) skin = "Pizzaman";
    if (skinid == 132) skin = "Taxi driver #1";
    if (skinid == 133) skin = "Taxi driver #2";
    if (skinid == 134) skin = "Sailor #1";
    if (skinid == 135) skin = "Sailor #2";
    if (skinid == 136) skin = "Sailor #3";
    if (skinid == 137) skin = "Chef";
    if (skinid == 138) skin = "Criminal #2";
    if (skinid == 139) skin = "French guy";
    if (skinid == 140) skin = "Garbageman #2";
    if (skinid == 141) skin = "Hatian #5";
    if (skinid == 142) skin = "Waitress #2";
    if (skinid == 143) skin = "Sonny guy #1";
    if (skinid == 144) skin = "Sonny guy #2";
    if (skinid == 145) skin = "Sonny guy #3";
    if (skinid == 146) skin = "Columbian guy #2";
    if (skinid == 147) skin = "Thug #1";
    if (skinid == 148) skin = "Beach guy #8";
    if (skinid == 149) skin = "Garbageman #3";
    if (skinid == 150) skin = "Garbageman #4";
    if (skinid == 151) skin = "Garbageman #5";
    if (skinid == 152) skin = "Tranny";
    if (skinid == 153) skin = "Thug #5";
    if (skinid == 154) skin = "SpandEx guy #1";
    if (skinid == 155) skin = "SpandEx guy #2";
    if (skinid == 156) skin = "Stripper #1";
    if (skinid == 157) skin = "Stripper #2";
    if (skinid == 158) skin = "Stripper #3";
    if (skinid == 159) skin = "Store clerk";
    return skin;
}[/pawn]

If That Dosen't work show me the error code.

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: How to put skin name?
« Reply #13 on: August 03, 2011, 05:15:46 am »
Found the error. It was the gSkins.
   new szMsg[ 64 ];
   format( szMsg, 64, "~h~ %s", GetNameFromSkinID(gSkins[ skinid ]) );
   GameTextForPlayerBottom( playerid, szMsg );
I changed it to:
[pawn]   new szMsg[ 64 ];
   format( szMsg, 64, "~h~ %s", GetNameFromSkinID(skinid));
   GameTextForPlayerBottom( playerid, szMsg );[/pawn]
I'm beginning to feel like a Lag God, Lag God

yazeen

  • Guest
Re: How to put skin name?
« Reply #14 on: August 03, 2011, 04:05:27 pm »
So, that means it worked right? topic can be locked now  ::)