4 posts in this topic

Guest
Новичок
Спойлер

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
Kaiser
Новичок

@Pyspik Держи

CMD:vluvbi(playerid, params[])
{
    new string[144];
    new Float:x,Float:y,Float:z;
    if(GetPVarInt(playerid, "logged") == 0return SendClientMessage(playerid, COLOR_GREY, "Вы не авторизованы"); // свои проверки ставите
    if(sscanf(params, "u", params[0])) return SendClientMessage(playerid, COLOR_GREY, "/vlubvi [ID игрока]");
    if(GetPVarInt(params[0], "logged") == 0return SendClientMessage(playerid, COLOR_GREY, "Игрок не авторизован"); // свои проверки ставите
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Вы находитесь в машине");
    if(params[0] == playerid) return SendClientMessage(playerid,COLOR_GREY, "Вы указали свой ID");
    if(!PlayerToPoint(3.0, playerid, x,y,z)) return SendClientMessage(playerid,COLOR_GREY, "Данный игрок далеко от Вас");
    format(string, sizeof(string), "%s признался что любит %s", sendername ,giveplayer); // свои проверки ставите
    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return ApplyAnimation(playerid, "COP_AMBIENT""Copbrowse_shake"4.0999011110);
}

 

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

    • Maxwell
      By Maxwell
      Ребята, мб есть у кого код на /rec, реконект то есть.