SA-MP Forums Archive
How to Change playerskin - 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)
+--- Thread: How to Change playerskin (/showthread.php?tid=405748)



How to Change playerskin - Antonioh - 07.01.2013

How to Change player skin?? i'm trying to find it in Pawno, but can't


Re: How to Change playerskin - Fabio11 - 07.01.2013

https://sampwiki.blast.hk/wiki/SetPlayerSkin

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/fireman", true) == 0)
    {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 277);
        return 1;
    }
    return 0;
}



Re: How to Change playerskin - Antonioh - 07.01.2013

i mean Noob Skin When people register in game, they get Skin id 299,


Re: How to Change playerskin - rbush12 - 07.01.2013

AddPlayerClass or SpawnInfo


Re: How to Change playerskin - Fabio11 - 07.01.2013

By my understanding, you want to change the default skin that players get registering. Try looking for something like
pawn Код:
PlayerInfo[playerid][pSkin] = 299;
It's hard to tell you something without looking at the script.


Re: How to Change playerskin - Antonioh - 07.01.2013

Can't find anything with that..

Look

Quote:

PlayerInfo[playerid][pLevel] = 2;
GivePlayerCash(playerid, 5000000);
PlayerInfo[playerid][pMats] = 10000;
PlayerInfo[playerid][pPot] = 10;
PlayerInfo[playerid][pCrack] = 10;
PlayerInfo[playerid][pAccount] = 5000000;
PlayerInfo[playerid][pDonateRank] = 3;




Re: How to Change playerskin - tyler12 - 07.01.2013

What script are you using?


Re: How to Change playerskin - Fabio11 - 07.01.2013

Then look for 299 in the whole script, it will be hard (with all the floats...) but if you really want to change it, you will have to do it. I can't help you anymore without knowing what GM you are using.


Re: How to Change playerskin - Antonioh - 07.01.2013

NGRP


Re: How to Change playerskin - Antonioh - 07.01.2013

Look do i have to add something here?

Quote:

PlayerInfo[playerid][pLevel] = 2;
GivePlayerCash(playerid, 5000000);
PlayerInfo[playerid][pMats] = 10000;
PlayerInfo[playerid][pPot] = 10;
PlayerInfo[playerid][pCrack] = 10;
PlayerInfo[playerid][pAccount] = 5000000;
PlayerInfo[playerid][pDonateRank] = 3;