Skip Class Selection & Spawn with setted skin (HELP)
#3

Quote:
Originally Posted by Sh4d0w2
Посмотреть сообщение
For this,you need to make the choosen skin saved.

Add this /saveskin command and it should work :
PHP код:
COMMAND:saveskin(playeridparams[])
{
   new 
skinidstring[256];
   if(
sscanf(params"i"skinid)) SendClientMessage(playerid0xFFFFFFAA,"usage: /saveskin[skinid]");
   if(
skinid 299) return SendClientMessage(playerid,0xFF0000AA,"error: Available Skin: 0 - 299 !");
   
SetPlayerSkin(playerid,skinid);
   
format(stringsizeof(string), "You changed your Skin-ID succesful!");
   
SendClientMessage(playerid0xFF0000AAstring);
   
// Now we will save the Skin.
   
new INI:File INI_Open(UserPath(playerid));
   
INI_SetTag(File,"data");
   
INI_WriteInt(File,"SkinID",skinid);
   
INI_Close(File);
   return 
1;

Remember to add
PHP код:
#include <YSI\y_ini 
on top
Thankyou. But, where to put that code? under OnPlayerCommandText?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)