Jump to content
  • 0

O intrebare la cumanda


heker

Question

Salut. Am si eu comanda la hitman /hundercover

if(strcmp(cmd, "/hundercover", true) == 0)
    {
    	if(IsPlayerConnected(playerid))
     	{
      		if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
        	{
				if(PlayerInfo[playerid][pRank] < 1)
				{
					SendClientMessage(playerid, COLOR_GREY, "   You need to be Rank 1 or Higher for this action!");
     				return 1;
				}
                new x_nr[256];
				x_nr = strtok(cmdtext, idx);
				if(!strlen(x_nr))
				{
					SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hitmanundercover list then /hitmanundercover [skin id]");
					return 1;
  				}
    			if (PlayerToPoint(3,playerid,1105.9569,-292.9882,73.9851) || PlayerInfo[playerid][pLocal] != 255)
     			{
      				if(strcmp(x_nr,"list",true) == 0)
        			{
						SendClientMessage(playerid, COLOR_YELLOW, "_________Skin_List_________");
						SendClientMessage(playerid, COLOR_GRAD1, "1: Agent 2: Staff");
      					SendClientMessage(playerid, COLOR_GRAD2, "3: Gay man 4: Hustler");
      					SendClientMessage(playerid, COLOR_GRAD3, "5: Random Baiat 6: Swampy Hippy");
      					SendClientMessage(playerid, COLOR_GRAD4, "7: Hotel Waiter (Girl) 8: Random Fata");
           				SendClientMessage(playerid, COLOR_GRAD5, "9: Michelle Cannes 10: Katie Zhan");
             	  		SendClientMessage(playerid, COLOR_GRAD6, "0: Go back to Hitman uniform");
               			return 1;
               		}
                 	else if(strcmp(x_nr,"1",true) == 0)
                    {
	                    SetPlayerSkin(playerid, 165);
	                    SetPlayerColor(playerid, COLOR_WHITE);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Agent.");
                        return 1;
					}
		            else if(strcmp(x_nr,"2",true) == 0)
                    {
                      	SetPlayerSkin(playerid, 217);
                      	SetPlayerColor(playerid, COLOR_WHITE);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Staff member.");
                        return 1;
                    }
                    else if(strcmp(x_nr,"3",true) == 0)
					{
						SetPlayerSkin(playerid, 170);
						SetPlayerColor(playerid, COLOR_WHITE);
						SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Gay man.");
						return 1;
					}
                    else if(strcmp(x_nr,"4",true) == 0)
                    {
                       	SetPlayerSkin(playerid, 21);
                       	SetPlayerColor(playerid, COLOR_WHITE);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Hustler.");
                        return 1;
					}
					else if(strcmp(x_nr,"5",true) == 0)
					{
                       	SetPlayerSkin(playerid, 60);
                       	SetPlayerColor(playerid, COLOR_WHITE);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Random guy.");
                        return 1;
					}
                    else if(strcmp(x_nr,"6",true) == 0)
                    {
                       	SetPlayerSkin(playerid, 72);
                       	SetPlayerColor(playerid, COLOR_WHITE);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Swampy Hippy.");
                        return 1;
                    }
                    else if(strcmp(x_nr,"7",true) == 0)
                   	{
                        SetPlayerSkin(playerid, 152);
                        SetPlayerColor(playerid, COLOR_WHITE);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Hotel Waiter.");
                        return 1;
                    }
      				else if(strcmp(x_nr,"8",true) == 0)
				 	{
 						SetPlayerSkin(playerid, 233);
 						SetPlayerColor(playerid, COLOR_WHITE);
      					SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Random girl.");
           				return 1;
           			}
          			else if(strcmp(x_nr,"9",true) == 0)
           			{
               			SetPlayerSkin(playerid, 192);
               			SetPlayerColor(playerid, COLOR_WHITE);
                   		SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as Michelle Cannes.");
                   		return 1;
                   	}
                    else if(strcmp(x_nr,"10",true) == 0)
                    {
                  		SetPlayerSkin(playerid, 193);
                  		SetPlayerColor(playerid, COLOR_WHITE);
                       	SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as Katie Zahn.");
                        return 1;
                    }
                    else if(strcmp(x_nr,"0",true) == 0)
                    {
                   		if(PlayerInfo[playerid][pRank] == 1)
                       	{
                        	GetPlayerName(playerid, sendername, sizeof(sendername));
                        	format(string,sizeof(string), "* %s don't undercover.", sendername);
                          	ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            SetPlayerSkin(playerid, 165);
                        }
                        else if(PlayerInfo[playerid][pRank] > 1)
                        {
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string,sizeof(string), "* %s don't undercover.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            SetPlayerSkin(playerid, 165);
                        }
					}
				}
				else
                {
                   	SendClientMessage(playerid, COLOR_GRAD2, "For HITMAN: You are not in the Hitman Spawn !");
                   	return 1;
                }
			}
			else
			{
				SendClientMessage(playerid, COLOR_WHITE, "You are not a Hitman Assasin");
                return 1;
 			}
   		}
		return 1;
   	}
si vrea sa adaug si asta in ea, cand da /hundercover sa nu ii se mai vada numele la cap :D
if (strcmp("/nameoff", cmdtext, true) == 0)
	{
		    for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
		    GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
		    return 1;
	}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

if(strcmp(cmd, "/hundercover", true) == 0)
    {
		 {
          for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
          GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
          return 1;
          }
       if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
           {
            if(PlayerInfo[playerid][pRank] < 1)
            {
               SendClientMessage(playerid, COLOR_GREY, "   You need to be Rank 1 or Higher for this action!");
                 return 1;
            }
                new x_nr[256];
            x_nr = strtok(cmdtext, idx);
            if(!strlen(x_nr))
            {
               SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hitmanundercover list then /hitmanundercover [skin id]");
               return 1;
              }
             if (PlayerToPoint(3,playerid,1105.9569,-292.9882,73.9851) || PlayerInfo[playerid][pLocal] != 255)
              {
                  if(strcmp(x_nr,"list",true) == 0)
                 {
                  SendClientMessage(playerid, COLOR_YELLOW, "_________Skin_List_________");
                  SendClientMessage(playerid, COLOR_GRAD1, "1: Agent 2: Staff");
                     SendClientMessage(playerid, COLOR_GRAD2, "3: Gay man 4: Hustler");
                     SendClientMessage(playerid, COLOR_GRAD3, "5: Random Baiat 6: Swampy Hippy");
                     SendClientMessage(playerid, COLOR_GRAD4, "7: Hotel Waiter (Girl) 8: Random Fata");
                       SendClientMessage(playerid, COLOR_GRAD5, "9: Michelle Cannes 10: Katie Zhan");
                        SendClientMessage(playerid, COLOR_GRAD6, "0: Go back to Hitman uniform");
                        return 1;
                     }
                    else if(strcmp(x_nr,"1",true) == 0)
                    {
                       SetPlayerSkin(playerid, 165);
                       SetPlayerColor(playerid, COLOR_WHITE);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Agent.");
                        return 1;
               }
                  else if(strcmp(x_nr,"2",true) == 0)
                    {
                         SetPlayerSkin(playerid, 217);
                         SetPlayerColor(playerid, COLOR_WHITE);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Staff member.");
                        return 1;
                    }
                    else if(strcmp(x_nr,"3",true) == 0)
               {
                  SetPlayerSkin(playerid, 170);
                  SetPlayerColor(playerid, COLOR_WHITE);
                  SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Gay man.");
                  return 1;
               }
                    else if(strcmp(x_nr,"4",true) == 0)
                    {
                          SetPlayerSkin(playerid, 21);
                          SetPlayerColor(playerid, COLOR_WHITE);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Hustler.");
                        return 1;
               }
               else if(strcmp(x_nr,"5",true) == 0)
               {
                          SetPlayerSkin(playerid, 60);
                          SetPlayerColor(playerid, COLOR_WHITE);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Random guy.");
                        return 1;
               }
                    else if(strcmp(x_nr,"6",true) == 0)
                    {
                          SetPlayerSkin(playerid, 72);
                          SetPlayerColor(playerid, COLOR_WHITE);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Swampy Hippy.");
                        return 1;
                    }
                    else if(strcmp(x_nr,"7",true) == 0)
                      {
                        SetPlayerSkin(playerid, 152);
                        SetPlayerColor(playerid, COLOR_WHITE);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Hotel Waiter.");
                        return 1;
                    }
                  else if(strcmp(x_nr,"8",true) == 0)
                {
                   SetPlayerSkin(playerid, 233);
                   SetPlayerColor(playerid, COLOR_WHITE);
                     SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Random girl.");
                       return 1;
                    }
                   else if(strcmp(x_nr,"9",true) == 0)
                    {
                        SetPlayerSkin(playerid, 192);
                        SetPlayerColor(playerid, COLOR_WHITE);
                         SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as Michelle Cannes.");
                         return 1;
                      }
                    else if(strcmp(x_nr,"10",true) == 0)
                    {
                        SetPlayerSkin(playerid, 193);
                        SetPlayerColor(playerid, COLOR_WHITE);
                          SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as Katie Zahn.");
                        return 1;
                    }
                    else if(strcmp(x_nr,"0",true) == 0)
                    {
                         if(PlayerInfo[playerid][pRank] == 1)
                          {
                           GetPlayerName(playerid, sendername, sizeof(sendername));
                           format(string,sizeof(string), "* %s don't undercover.", sendername);
                             ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            SetPlayerSkin(playerid, 165);
                        }
                        else if(PlayerInfo[playerid][pRank] > 1)
                        {
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string,sizeof(string), "* %s don't undercover.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            SetPlayerSkin(playerid, 165);
                        }
               }
            }
            else
                {
                      SendClientMessage(playerid, COLOR_GRAD2, "For HITMAN: You are not in the Hitman Spawn !");
                      return 1;
                }
         }
         else
         {
            SendClientMessage(playerid, COLOR_WHITE, "You are not a Hitman Assasin");
                return 1;
          }
         }
      return 1;
      }

Ia vezi daca-ti mere ;)

semnaturar.gif

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • 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.