28.07.2017, 12:44
Quote:
You Have This In Your Own Script
PHP код:
|
PHP код:
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
new string[128];
if(listid == skinlist)
{
if(response)
{
PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
new idx = GetPlayerVirtualWorld(playerid)-100;
PlayerInfo[playerid][pModel] = modelid;
SetPlayerSkin(playerid, modelid);
BizInfo[idx][bMoney] += 1200;
BizInfo[idx][bProducts] --;
GiveDodMoney(playerid, -1200);
PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
format(string, sizeof(string), "* %s has bought new clothes for $1200.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
return 1;
}