Jump to content

Recommended Posts

Posted

/echilotest - Vezi daca playeriul a baut.

 if (strcmp(cmd, "/echilotest" true) == 0)
     {
    if(IsPlayerConnected(playerid))
         {
         if (IsACop(playerid))
             {
            tmp = strtok(cmdtext, idx);
             if(!strlen(tmp))
                   {
              SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /echilotest [playerid/PartOfName]");
              return 1;
                   }
                     giveplayerid = ReturnUser(tmp);
                     new level = GetPlayerDrunkLevel(giveplayerid);
                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                     if(IsPlayerConnected(giveplayerid))
                       {
                        if(giveplayerid != INVALID_PLAYER_ID)
                         {
	                      if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 3)
	                         {
	                           if(level > 600)
                                 {
	                            format(string, sizeof(string), "* %s grabs their breathalyzer and puts the tube into %s's mouth.", sendername ,giveplayer);
	                            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	                             SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Breathalyzer Result: Intoxicated **");
	                             GameTextForPlayer(playerid,"~w~This player is~n~~r~Drunk", 8000, 1);
							     return 1;
	                                }
	                             else
	                                   {
                                 format(string, sizeof(string), "* %s grabs their breathalyzer and puts the tube into %s's mouth.", sendername ,giveplayer);
	                             ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	                             SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Breathalyzer Result: Not Intoxicated **");
	                             GameTextForPlayer(playerid,"~w~This player is~n~~r~Not Drunk", 8000, 1);
	                              return 1;
	                               }
                                }
                            }
                            }
                          else
		                    {
	                     SendClientMessage(playerid, COLOR_GRAD1, "   This player is offline !");
	                          }
	                       }
	                      else
                           	{
	                    SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use this command! (Cops Only)");
	                        }
                      	}
	                   return 1;
	                    }

Din cate stiu eu, se spune ETILOTEST  , si nu prea vad la ce e folositoare, e buna pentru serverele RP / GF :D

communitylogosml.png

94.23.120.101:7778

  • Replies 51
  • Created
  • Last Reply

Top Posters In This Topic

Posted

PawnFox" post="127267" timestamp="1356610287"]

Din cate stiu eu, se spune ETILOTEST  , si nu prea vad la ce e folositoare, e buna pentru serverele RP / GF :D

Da scz am gresit ca m-am grabit . Da este mai mult pentru serverele RP / GF :D

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.