All pastes #673985 Raw Edit

Something

public text v1 · immutable
#673985 ·published 2007-08-28 20:55 UTC
rendered paste body
new CostumeReady[MAX_PLAYERS];

CostumeReady[playerid] = 0;

// Any where

	if(strcmp(cmd, "/removecostume", true) == 0)
	{
 		if(IsPlayerConnected(playerid))
     	{
			if(PlayerInfo[playerid][pMember]==8)
			{
   				if (PlayerToPoint(3, playerid,1204.8582,11.8666,1000.9219))
				{
				    if(PlayerInfo[playerid][pSex] == 2)
				    {
				        if(PlayerInfo[playerid][pRank] < 3)
				        {
				        	SetPlayerSkin(playerid, 93);
				        	return 1;
						}
						else
						{
							SetPlayerSkin(playerid, 141);
							return 1;
						}
					}
					else if(PlayerInfo[playerid][pRank] == 1)
					{
						SetPlayerSkin(playerid, 165);
						return 1;
					}
					else if(PlayerInfo[playerid][pSex] == 2)
					{
    					SetPlayerSkin(playerid, 141);
				    	return 1;
					}
					else if(PlayerInfo[playerid][pLeader] == 8)
					{
						SetPlayerSkin(playerid, 59);
						return 1;
					}
					else if(PlayerInfo[playerid][pRank] == 2)
					{
						SetPlayerSkin(playerid, 186);
						return 1;
					}
					else if(PlayerInfo[playerid][pRank] == 3)
					{
						SetPlayerSkin(playerid, 127);
						return 1;
					}
					else if(PlayerInfo[playerid][pRank] > 3)
					{
						SetPlayerSkin(playerid, 166);
						return 1;
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_GRAD2, "You are not at the pickup spot!");
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD2, "You are not a hitmen!");
				return 1;
			}
		}
	}

//Where /portable is

	if(strcmp(cmd,"/portable",true)==0)
	{
	    if(IsPlayerConnected(playerid))
	    {
		    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
		    {
			    if(ConnectedToPC[playerid] == 255)
			    {
			        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have shutdowned your Laptop, and Disconnected from your Agency.");
			        ConnectedToPC[playerid] = 0;
			        return 1;
			    }
			    GetPlayerName(playerid, sendername, sizeof(sendername));
			    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have booted up your Laptop, and Connected to your Agency.");
			    SendClientMessage(playerid, COLOR_WHITE,  "|___ Hitman Agency ___|");
			    SendClientMessage(playerid, COLOR_YELLOW2, "| - 	 News      - |");
			    SendClientMessage(playerid, COLOR_YELLOW2, "| -    Contracts   - |");
			    SendClientMessage(playerid, COLOR_YELLOW2, "| -     Givehit    - |");
			    SendClientMessage(playerid, COLOR_YELLOW2, "| -      Order     - |");
			    SendClientMessage(playerid, COLOR_YELLOW2, "| -     Costume    - |");
			    SendClientMessage(playerid, COLOR_YELLOW2, "| -      Ranks     - |");
			    SendClientMessage(playerid, COLOR_YELLOW2, "| -     Logout     - |");
				SendClientMessage(playerid, COLOR_WHITE,   "|_____________________|");
				ConnectedToPC[playerid] = 255;
			}
			else
			{
				SendClientMessage(playerid, COLOR_GREY, "   You are not a Member of the Hitman Agency !");
		        return 1;
		    }
		}
	    return 1;
	}

// At the pickup spot for packages


			else if(PlayerToPoint(2.0, i,****WHAT EVER THE NEW HITMEN COORDS ARE****))
			{
			    if(CostumeReady[i] > 0)
			    {
			        switch (CostumeReady[i])
			        {
			            case 1:
			            {
			            	SetPlayerSkin(i, 274);
			            	GivePlayerMoney(i, - 3000);
							SendClientMessage(i, COLOR_LIGHTBLUE, "* You picked up your Ordered Costume.");
						}
						case 2:
						{
							SetPlayerSkin(i, 275);
							GivePlayerMoney(i, -4000);
							SendClientMessage(i, COLOR_LIGHTBLUE, "* You picked up your Ordered Costume.");
						}
	  					case 3:
	  					{
	  						SetPlayerSkin(i, 276);
							GivePlayerMoney(i, -4000);
							SendClientMessage(i, COLOR_LIGHTBLUE, "* You picked up your Ordered Costume.");
						}
						case 4:
						{
						    SetPlayerSkin(i, 71);
							GivePlayerMoney(i, -6000);
							SendClientMessage(i, COLOR_LIGHTBLUE, "* You picked up your Ordered Costume.");
						}
						case 5:
						{
						    SetPlayerSkin(i, 163);
							GivePlayerMoney(i, -9000);
							SendClientMessage(i, COLOR_LIGHTBLUE, "* You picked up your Ordered Costume.");
						}
						case 6:
						{
							SetPlayerSkin(i, 164);
							GivePlayerMoney(i, -9000);
							SendClientMessage(i, COLOR_LIGHTBLUE, "* You picked up your Ordered Costume.");
						}
					}
					CostumeReady[i] = 0;
				}


// below /portable ranks in the script



		else if ((strcmp("Costume", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Costume")))
		{
		    if(CostumeReady[playerid] > 0)
		    {
		        SendClientMessage(playerid, COLOR_GREY, "   You already Ordered a Costume, pick it up at your Head Quarter's Front Door first !");
		        return 0;
		    }
		    tmp = strtok(text, idx);
		    if ((strcmp("1", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1")))
			{
			    if(PlayerInfo[playerid][pRank] < 1) { SendClientMessage(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Costume !"); return 0; }
			    if(GetPlayerMoney(playerid) > 3000)
			    {
			        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have Costume 1 ($3000), it will be delivered at your Head Quarter's Front Door.");
			        CostumeReady[playerid] = 1;
			        return 0;
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY,"   You can't afford that Costume !");
			        return 0;
			    }
			}
			else if ((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
			{
			    if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Costume !"); return 0; }
			    if(GetPlayerMoney(playerid) > 3999)
			    {
			        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have Costume 2 ($4000), it will be delivered at your Head Quarter's Front Door.");
			        CostumeReady[playerid] = 2;
			        return 0;
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY,"   You can't afford that Costume !");
			        return 0;
			    }
			}
			else if ((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
			{
			    if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Costume !"); return 0; }
			    if(GetPlayerMoney(playerid) > 3999)
			    {
			        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have Ordered Costume 3 ($4000), it will be delivered at your Head Quarter's Front Door.");
			        CostumeReady[playerid] = 3;
			        return 0;
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY,"   You can't afford that Costume !");
			        return 0;
			    }
			}
			else if ((strcmp("4", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("4")))
			{
			    if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Costume !"); return 0; }
			    if(GetPlayerMoney(playerid) > 5999)
			    {
			        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have Ordered Costume 4 ($6000), it will be delivered at your Head Quarter's Front Door.");
			        CostumeReady[playerid] = 4;
			        return 0;
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY,"   You can't afford that Costume !");
			        return 0;
			    }
			}
			else if ((strcmp("5", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("5")))
			{
			    if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Costume !"); return 0; }
			    if(GetPlayerMoney(playerid) > 8999)
			    {
			        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have Ordered Costume 5 ($9000), it will be delivered at your Head Quarter's Front Door.");
			        CostumeReady[playerid] = 5;
			        return 0;
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY,"   You can't afford that Costume !");
			        return 0;
			    }
			}
			else if ((strcmp("6", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("6")))
			{
			    if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, "   Your Rank is not high enough to Order that Costume !"); return 0; }
			    if(GetPlayerMoney(playerid) > 8999)
			    {
			        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have Ordered Costume 6 ($9000), it will be delivered at your Head Quarter's Front Door.");
			        CostumeReady[playerid] = 6;
			        return 0;
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY,"   You can't afford that Costume !");
			        return 0;
			    }
			}
			else
			{
			    SendClientMessage(playerid, COLOR_WHITE, "|__________________ Available Packages __________________|");
			    if(PlayerInfo[playerid][pRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "|(1) ($3000 ) Rank 1 - 5: Medic Costume 1"); }
			    if(PlayerInfo[playerid][pRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(2) ($4000 ) Rank 2 - 5: Medic Costume 2"); }
			    if(PlayerInfo[playerid][pRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(3) ($4000 ) Rank 2 - 5: Medic Costume 3"); }
			    if(PlayerInfo[playerid][pRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(4) ($6000) Rank 3 - 5: Cop Costume 1"); }
			    if(PlayerInfo[playerid][pRank] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(5) ($9000) Rank 4 - 5: FBI Costume 1"); }
   			    if(PlayerInfo[playerid][pRank] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(6) ($9000) Rank 4 - 5: FBI Costume 2"); }
			    SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
			    return 0;
			}
		}