Рекомендованные сообщения



Не найдено.

3 posts in this topic

как сделать чтобы игроку давалась новогодняя шапка при заходе

Share this post


Link to post
Share on other sites

1. Создаёшь объект
2. Крепишь к игроку его
P.S этих уроков полно (может щас добавлю один на форум)

Share this post


Link to post
Share on other sites

Стандартный pawno командный оборот:
 

if(strcmp(cmdtext, "/capon", true) == 0)
{
    SetPlayerAttachedObject(playerid,2, 19066, 2, 0.13, 0.0, 0.0, 0.0, 80.0, 80.0);
    PlayerPlaySound(playerid,1137,0.0,0.0,0.0);
    SendClientMessage(playerid, 0x00FFFFFF,"Вы надели новогоднюю шапку");
    return 1;
}
if(strcmp(cmdtext, "/capoff", true) == 0)
{
    RemovePlayerAttachedObject(playerid,2);
    PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
    SendClientMessage(playerid, 0x00FFFFFF,"Вы сняли новогоднюю шапку");
    return 1;
}

Pawno.cmd,dc_cmd,zcmd:
 

CMD:capon(playerid,params[])
{
    SetPlayerAttachedObject(playerid,2, 19066, 2, 0.13, 0.0, 0.0, 0.0, 80.0, 80.0);
    PlayerPlaySound(playerid,1137,0.0,0.0,0.0);
    SendClientMessage(playerid, 0x00FFFFFF,"Вы надели новогоднюю шапку");
    return 1;
}
CMD:capoff(playerid,params[])
{
    RemovePlayerAttachedObject(playerid,2);
    PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
    SendClientMessage(playerid, 0x00FFFFFF,"Вы сняли новогоднюю шапку");
    return 1;
}

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • sweet
      By sweet
      Хелп,при компиле выдает ошибку C:\Users\PC\Desktop\pawno\pawno\include\objects.inc(1104) : error 029: invalid expression, assumed zero
      Сама строка в которой ошибка:    {-2032.7073,-73.8643,35.2484, -2006.3911,-52.6238,35.2704},
      Закройте тему,проблема решилась сама по себе