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



Не найдено.

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

    • roman_kaspiy
      By roman_kaspiy
      У кого имеется код Damage Informer как на Evolve RolePlay? Мне нужно такой же для своего сервера