1 post in this topic

Спойлер

if(strcmp(cmd, "/vlubvi", true) == 0)
  {
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerInAnyVehicle(playerid)) return  SendClientMessage(playerid, COLOR_GREY, "Может лучше не в машине?");
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp)) return       SendClientMessage(playerid, COLOR_WHITE, "::: Используйте: /vlubvi [id]");
         giveplayerid = ReturnUser(tmp);
        if(IsPlayerConnected(giveplayerid))
         {
         if(giveplayerid != INVALID_PLAYER_ID)
         {
           if (ProxDetectorS(2.0, playerid, giveplayerid))
           {
            if(giveplayerid == playerid)  return  SendClientMessage(playerid,COLOR_GRAD1,"Вы указали свой ID");
        new Float:angle;
        GetPlayerFacingAngle(playerid, angle);
        SetPlayerFacingAngle(giveplayerid, angle + 180);
        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "%s признался что любит %s", sendername ,giveplayer);
        ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        ApplyAnimation(playerid, "COP_AMBIENT", "Copbrowse_shake", 4.0999, 0, 1, 1, 1, 1, 0); //на колени!  
        return 1;
       }
       }
       else
       {
           SendClientMessage(playerid, COLOR_GREY, "Человек далеко от вас!");
           return 1;
       }
      }
     else
     {
         SendClientMessage(playerid, COLOR_GREY, "ID офлайн!!");
         return 1;
     }
   }
   return 1;
}

 

Автор: неизвестен. 

Edited by stibs

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • mihailpopov
      By mihailpopov
      Привет всем форумчане, есть вопрос у меня имеется инвентарь в формате psd. Как подключить его к моду?