Information about skins - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Information about skins (
/showthread.php?tid=220415)
Information about skins -
Libra_PL - 03.02.2011
Hello,
I need help in something again. I'm looking for "skins information" little script. I couldn't find it, so can anyone paste here example of it? I mean that, if current skin on class selection is ID 152, what should the server do for the character (ex. animation, GameTextForPlayer with "Girl" and other things - for that, make "//Here"). And please paste for three skins (I will easily add more then) for skin ID 3, 4 and 5.
Here's a script from rivershell, it's near that what I mean (it appears . I ask only, because I had a problem and I didn't know how to fix it (information about skin was the same every character)...
Quote:
public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
SetPlayerTeamFromClass(playerid,classid);
if(classid == 0 || classid == 1) {
GameTextForPlayer(playerid,"~g~GREEN ~w~TEAM",1000,5);
} else if(classid == 2 || classid == 3) {
GameTextForPlayer(playerid,"~b~BLUE ~w~TEAM",1000,5);
}
return 1;
}
|
Thanks