Jump to content

Comenzi Folositoare


heatON

Recommended Posts

/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

Link to comment
Share on other sites

  • Replies 51
  • Created
  • Last Reply

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.