Exactly.Rus
Умник
Привет всем. Сейчас я вам покажу как сделать банданы бандам.
Начнём.
Ко всем NEW:
В OnPlayerConnect:
в OnPlayerCommandtext:
Конец.
Разработка: Exactly.Rus
Данных тем на портале - 0 (не включая мой)
Начнём.
Ко всем NEW:
PHP:
new mask[MAX_PLAYERS];
PHP:
mask[playerid] = 0;
PHP:
if(strcmp(cmd, "/mask", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(mask[playerid] == 0)
{
SetPlayerAttachedObject(playerid, 0, 18912, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
///hbject id 0 18912 2 0.1 0.02 0 90 180 90
mask[playerid] = 1;
format(string,sizeof(string), "Надел(а) бандану");
SetPlayerChatBubble(playerid,string,COLOR_PURPLE,30.0,10000);
}
else
{
RemovePlayerAttachedObject(playerid, 0);
mask[playerid] = 0;
format(string,sizeof(string), "Снял(а) бандану");
SetPlayerChatBubble(playerid,string,COLOR_PURPLE,30.0,10000);
}
}
return 1;
}
Разработка: Exactly.Rus
Данных тем на портале - 0 (не включая мой)
Последнее редактирование:
