- Steff -
Ученик
Когда собираю мусор, мусор не исчезает. А остаётся на том же месте
PHP:
case 23:
{
if(response)
{
if(GetPVarInt(playerid, "beach") == 0)
{
SetPVarInt(playerid, "beach",1);
SetPVarInt(playerid, "pack",0);
SetPVarInt(playerid, "skin_old", GetPlayerSkin(playerid));
SetPlayerSkin(playerid, 16);
TextDrawShowForPlayer(playerid,job_td[playerid]);
new string[50];
format(string,sizeof(string),"Mycop: %d~n~$: %d",GetPVarInt(playerid, "pack"),GetPVarInt(playerid, "pack")*180);
TextDrawSetString(job_td[playerid], string);
SendClientMessage(playerid,0xCECFCEFF, "Вы успешно начали рабочий {63cb00}день.");
SendClientMessage(playerid,0xCECFCEFF, "Для того что бы поднимать мусор, подходите рядом к нему, и нажимайте клавишу {63cb00} ALT.");
SetPlayerAttachedObject(playerid, 1, 1264, 6, 0.189000, -0.014000, 0.000000, 90.000000, -90.500000, 0.000000, 0.2,0.2, 0.2);
coord_obj[playerid][0] = 0.2,coord_obj[playerid][1] = 0.2;
}
else
{
new string[64];
if(GetPVarInt(playerid, "beach") == 0) return SendClientMessage(playerid, 0xCECFCEFF, "Ошибка. Вы не работаете уборщиком на пляже.");
PlayerInfo[playerid][pCash] += GetPVarInt(playerid, "pack")*180;
TextDrawHideForPlayer(playerid,job_td[playerid]);
format(string,sizeof(string), "В общей сумме вы заработали: {63cb00}%d$", GetPVarInt(playerid, "pack")*180);
SendClientMessage(playerid, 0xCECFCEFF, string);
SendClientMessage(playerid,0xCECFCEFF, "Вы успешно закончили рабочий {63cb00} день.");
SetPlayerSkin(playerid, GetPVarInt(playerid, "skin_old"));
DeletePVar(playerid, "pack");
DeletePVar(playerid, "beach");
DeletePVar(playerid, "trash");
RemovePlayerAttachedObject(playerid,1);
}
}
}
