- Регистрация
- 13 Апр 2018
- Сообщения
- 202
- Лучшие ответы
- 0
- Репутация
- 0
Помогите перевести на DC_CMD
PHP:
new shapka[MAX_PLAYERS];
PHP:
if(strcmp(cmd, "/shapka", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(shapka[playerid] == 0)
{
SetPlayerAttachedObject(playerid,2, 19064, 2, 0.13, 0.0, 0.0, 0.0, 80.0, 80.0);
shapka[playerid] = 1;
GivePlayerMoney(playerid, -1500);
SendClientMessage(playerid, COLOR_YELLOW, " Вы купили новогоднюю шапку!");
}
else
{
RemovePlayerAttachedObject(playerid, 2);
DestroyPlayerObject(playerid, 19064);
shapka[playerid] = 0;
SendClientMessage(playerid, COLOR_YELLOW, " Вы сняли шапку!");
}
}
return 1;
}