[SAVESKIN] Saving Skins
#5

Quote:
Originally Posted by JeaSon
Посмотреть сообщение
like this

PHP код:

CMD
:skin(playeridparams[])
{
     new 
skinid// we defined veriable of skinid
    
if(sscanf(params"i",skinid)) return SendClientMessage(playerid0xff0000ff,"Usage: /skin <id>");
    if(
skinid 299 || skinid 0) return SendClientMessage(playerid 0xff0000ff"Use vaild skin id from 0 to 299")
    
SetPlayerSkin(playeridskinid); // this will set player skin id and skinid is the veriable of id of skin he try to use
    
format(strsizeof(str), "You have successfully changed your skin id to %d",skinid);// this is format that will be printed to use 
    
SendClientMessage(playerid0xff0000ff,str);
    
pInfo[playerid][SkinID] = skinid// so now skinid is saved in pInfo[playerid][SkinID]
    
return 1;

I dont have pSkin
Reply


Messages In This Thread
[SAVESKIN] Saving Skins - by BarFix - 23.08.2015, 17:58
Re: [SAVESKIN] Saving Skins - by JeaSon - 23.08.2015, 18:02
Re: [SAVESKIN] Saving Skins - by BarFix - 23.08.2015, 18:09
Re: [SAVESKIN] Saving Skins - by JeaSon - 23.08.2015, 18:17
Re: [SAVESKIN] Saving Skins - by BarFix - 23.08.2015, 18:18
Re: [SAVESKIN] Saving Skins - by JeaSon - 23.08.2015, 18:19
Re: [SAVESKIN] Saving Skins - by BarFix - 23.08.2015, 18:22
Re: [SAVESKIN] Saving Skins - by JeaSon - 23.08.2015, 18:24
Re: [SAVESKIN] Saving Skins - by BarFix - 23.08.2015, 18:31
Re: [SAVESKIN] Saving Skins - by JeaSon - 23.08.2015, 18:33

Forum Jump:


Users browsing this thread: 2 Guest(s)