help skin class selection
#1

I don't understand why after I choose a skin from skin selector then it always spawn as cj skin. Why?
Reply
#2

Because you didnt add other skins

use this
pawn Код:
AddPlayerClass(24,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0);
Just do that and change the 24 to other skin ids
Reply
#3

Quote:
Originally Posted by efrim123
Посмотреть сообщение
Because you didnt add other skins

use this
pawn Код:
AddPlayerClass(24,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0);
Just do that and change the 24 to other skin ids
I did I have the complete list skin ids under ongamemodeint..

but I think this is because of my filterscript that it was defined as skin cj when spawning

Код:
EDIT: Please check the last line
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_REGISTER)
   	{
		if(response)
		{
  			new weapons[13][2];
    		for (new i = 0; i < 13; i++)
    		{
    		GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
   		 }
			new Jfile[100],pIP[16],string[40],str[60],buf[145],year,month,day,hour,mins,sec;
			new seconds = gettime() - pInfo[playerid][ConnectedTime] + pInfo[playerid][TotalSecs];
			if(strlen(inputtext) < 3 || strlen(inputtext) > 20)
			{
				if(MustRegister == 1) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,"Registration Error", "Enter the password:\n{FF0000}*Password length must be between 3 - 20 characters", "Register", "Kick");
				else return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,"Registration Error", "Enter the password:\n{FF0000}*Password length must be between 3 - 20 characters", "Register", "No Thanks");
			}
	  		getdate(year, month, day);
          	gettime(hour,mins,sec);
          	GetPlayerIp(playerid,pIP,16);
          	format(string, 40,"%d/%d/%d at %d:%d:%d", day,month,year,hour,mins,sec);
          	format(str, 60,"%d/%d/%d at %d:%d:%d", day,month,year,hour,mins,sec);
           	format(Jfile, 100, ACCOUNTS_PATH, GetName(playerid));
           	WP_Hash(buf, sizeof(buf),inputtext);
           	new INI:ACCOUNT = INI_Open(Jfile);
           	INI_WriteString(ACCOUNT, "RegisteredOn", string);
           	INI_WriteString(ACCOUNT, "RegisteredIP", pIP);
           	INI_WriteString(ACCOUNT, "LastLoggedIP", pIP);
            INI_WriteString(ACCOUNT, "Password",buf);
            INI_WriteInt(ACCOUNT, "Level", 0);
            INI_WriteInt(ACCOUNT, "Banned", 0);
            INI_WriteInt(ACCOUNT, "Donator", 0);
            INI_WriteInt(ACCOUNT, "Score", START_SCORE);
            INI_WriteInt(ACCOUNT, "Cash", START_CASH);
            INI_WriteInt(ACCOUNT, "Kills", 0);
            INI_WriteInt(ACCOUNT, "Deaths", 0);
            INI_WriteInt(ACCOUNT, "Skin", 0);
I wonder what will I happened next when I will delete this line for skin?
Reply
#4

Delete the line in the filter script and it will be fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)