07.01.2012, 02:30
Код:
command(skin, playerid, params[]) { new skinid; if(sscanf(params, "dd", skinid)) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, WHITE, "SYNTAX: /skin [id]"); } } else { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid, x, y, z, range); { SetPlayerSkin(playerid, skinid); new string[128]; format(string, sizeof(string), "You have bought skin ID %s from the store!", skinid); SendClientMessage(playerid, WHITE, string); GivePlayerMoney(playerid, -60); } else { SendClientMessage(playerid, WHITE, "You are not in the clothes shop!"); } } } return 1; }