SA-MP Forums Archive
SetPlayerSkin - 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: SetPlayerSkin (/showthread.php?tid=506642)



SetPlayerSkin - gekas - 13.04.2014

pawn Код:
dcmd_onduty(playerid,params[])
{
    #pragma unused params

    if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0)
    {


    if (PlayerInfo[playerid][pSpawn] == 1)
    {

    SetPlayerArmour(playerid, 9999999999);
    SetPlayerHealth(playerid, 999999);
    GivePlayerWeapon(playerid, 40, 9999999);
    GivePlayerWeapon(playerid, 39, 9999999);
    GivePlayerWeapon(playerid, 38, 9999999);
    SetPlayerColor(playerid, 0xFFFF0000);
    oldskin[playerid] = SetPlayerSkin(playerid);
    SetPlayerSkin(playerid, 294);

    }else{
    SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You Are Dead.");
    }

    }else{
    SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
    }
    return 1;
}
This is the line
pawn Код:
oldskin[playerid] = SetPlayerSkin(playerid);
Quote:

C:\Users\Arlind\Desktop\Cops&robbers(Fixed by Yossef_Jones, MCZOFT)\gamemodes\cnr.pwn(16487) : warning 202: number of arguments does not match definition




Re: SetPlayerSkin - PrivatioBoni - 13.04.2014

I think you mean GetPlayerSkin(playerid);

SetPlayerSkin will always need a number, which is the skin parameter..


Re: SetPlayerSkin - gekas - 13.04.2014

i want my last skin what i was


Re: SetPlayerSkin - Lordzy - 13.04.2014

That's what the above poster told, you've to GET player's skin, not SET to save them.
https://sampwiki.blast.hk/wiki/GetPlayerSkin


Re: SetPlayerSkin - gekas - 13.04.2014

When i use this hi dont get mee the last skin


Re: SetPlayerSkin - mrkiller90 - 13.04.2014

You need to store your last skin so you can get it later like GetPlayerSkin(playerid) in PlayerInfo[playerid][pSkin] and then PlayerInfo[playerid][pSkin] == ...


Re: SetPlayerSkin - gekas - 13.04.2014

Idk how to use add on my command and send mee it


Re: SetPlayerSkin - gekas - 13.04.2014

How to fix This Fucking Now ?

Quote:

if (PlayerInfo[playerid][Spawn_SkinId] == 0)
{

Quote:

C:\Users\Arlind\Desktop\Cops&robbers(Fixed by Yossef_Jones, MCZOFT)\gamemodes\cnr.pwn(16507) : warning 213: tag mismatch




Re: SetPlayerSkin - iRaiDeN - 13.04.2014

Quote:
Originally Posted by gekas
Посмотреть сообщение
How to fix This Fucking Now ?
this var is bool?


Re: SetPlayerSkin - gekas - 13.04.2014

IDK This