SA:MP Skin ID ? +Rep
#1

How to get the skinid of a player using stock or a function?
I used the 'modelid' variable of public OnPlayerModelSelection(playerid, response, listid, modelid), but on game show a long number and not the id of the skin of the player, how can i fix it?

if(listid == skinlist)
{
if(response)
{
SetPlayerSkin(playerid, modelid);
SendClientMessage(playerid, green, "- Skin successufly changed to ID: %d for 200$ -", HERE);
GivePlayerMoney(playerid, -200);
}
else SendClientMessage(playerid, red, "Skin selection aborted");

Thanks to all,
Rodrigo Dionigi aka 'Rodri'
Reply
#2

pawn Код:
stock GetPlayerSkinID(playerid)
{
    GetPlayerSkin(playerid);
    return 1;
}
Reply
#3

Are you sure that it will wors? Otherwise i REP you, Thanks man i apreice it
Reply
#4

It doesnt work....
Reply
#5

hmmm
Reply
#6

How can i get the id? The code that you sended me shows just a long bugged number.. Please i also repped you
Reply
#7

my bad
pawn Код:
stock GetPlayerSkinID(playerid)
{
    new id;
    id = GetPlayerSkin(playerid);
    return id;
}
Reply
#8

Yes how to fix this? Do you know any other?
Reply
#9

What about this

Код:
if(listid == skinlist)
{
if(response)
{
SetPlayerSkin(playerid, modelid);
SendClientMessage(playerid, green, "- Skin successufly changed to ID: %d for 200$ -", modelid);
GivePlayerMoney(playerid, -200);
}
else SendClientMessage(playerid, red, "Skin selection aborted");
Reply
#10

The variable 'modelid' bugged too, i tried it. But in game when i change the skin show a long number, and not the real ID, thats a mistake to all i think.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)