24.08.2012, 17:55
Hello, i have a question for my skins, when someone use /buyclothes to buy a skin in binco,zip,prolaps etc they get the skin they choose. But when they die or relog they get the skin that an admin last /setskin on them or the skin they started on server with (if an admin never /setskin on them then they get the skin that an admin latest set on them) what is the problem?
Код:
if(strcmp(cmd, "/Buyclothes", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsAtClothShop(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE,"USAGE: /Buyclothes [Skin ID]"); return 1; } new level = strval(tmp); GivePlayerMoney(playerid,-200); SafeGivePlayerMoney(playerid, - 200); if(!IsValidSkin(level)) return SendClientMessage(playerid, COLOR_GREY, "Wrong skin ID!"); PlayerInfo[playerid][pModel] = level; SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); } } return 1; }