01.10.2013, 19:37
Sorry I checked my filterscript again and I see that its using a skin saving
But when I do set my /skin ingame (example: /skin 22) then after commit suicide then I spawn my skin changes back to the first one (anyway I found also this cmd for skin)
EDIT: Dragonsaurus: How about when player disconnect? then reconnect again in the server. It should load the last skin used. Is that possible?
Код:
public LoginPlayer(playerid, name[], value[]) { INI_Int("Level", pInfo[playerid][pLevel]); INI_Int("Donator", pInfo[playerid][Donator]); INI_Int("Banned", pInfo[playerid][Banned]); INI_Int("Kills", pInfo[playerid][Kills]); INI_Int("Deaths", pInfo[playerid][Deaths]); INI_Int("Muted", pInfo[playerid][Muted]); INI_Int("Score", pInfo[playerid][Score]); INI_Int("Cash", pInfo[playerid][Cash]); INI_Int("Skin", pInfo[playerid][Skin]); INI_String("LastLoggedIP", pInfo[playerid][IP], 16); INI_Int("TotalSeconds", pInfo[playerid][TotalSecs]); return 1; }
Код:
CMD:skin(playerid,params[]) { new skinid; if(sscanf(params, "i", skinid)) return SendClientMessage(playerid, white, "{FFFF00}Usage: /setskin <Skin ID>") ; if(IsPlayerConnected(playerid)) { if(skinid < 0 || skinid > 299) return SendClientMessage(playerid, red, ">> Invaild Skin ID. Must be between <0-299>"); GameTextForPlayer(playerid,"~g~Skin Changed",2000,3); return SetPlayerSkin(playerid, skinid); } else return ShowMessage(playerid, red, 2); }