Help[rep]
#6

Quote:
Originally Posted by GNGification
Посмотреть сообщение
Try this or wait fixing it first xD
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	switch(dialogid)
	{
 		case 9035:
   		{
     		switch(listitem)
       		{
         	case 0:
          	{
       			for(new i = 0; i<MAX_PLAYERS; i++)
         		{
	         	SendClientMessage(playerid, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Detective :.");
	          	PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	           	PlayerInfo[playerid][pJob] = 1;
	           	PlayerInfo[playerid][pContractTime] = 5;
            	}
            }
            return 1;
            }
            case 1:
            {
	            for(new i = 0; i<MAX_PLAYERS; i++)
	            {
	            SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Lawyer :.");
	            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	            PlayerInfo[playerid][pJob] = 2;
	            PlayerInfo[playerid][pContractTime] = 5;
            	}
            }
            return 1;
            }
            case 2:
            {
	            for(new i = 0; i<MAX_PLAYERS; i++)
	            {
	            SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Bodyguard :.");
	            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	            PlayerInfo[playerid][pJob] = 8;
	            PlayerInfo[playerid][pContractTime] = 5;
            	}
            }
            return 1;
            }
            case 3:
            {
	            for(new i = 0; i<MAX_PLAYERS; i++)
	            {
	            SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Bus Driver :.");
	            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	            PlayerInfo[playerid][pJob] = 14;
	            PlayerInfo[playerid][pContractTime] = 5;
            	}
            }
            return 1;
            }
            case 4:
            {
	            for(new i = 0; i<MAX_PLAYERS; i++)
	            {
	            SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Boxer :.");
	            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	            PlayerInfo[playerid][pJob] = 12;
	            PlayerInfo[playerid][pContractTime] = 5;
            	}
            }
            return 1;
            }
            case 5:
            {
            if (GetPlayerState(playerid) == 1)
            {
	            for(new i = 0; i<MAX_PLAYERS; i++)
	            {
	            SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Maturator :.");
	            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	            PlayerInfo[playerid][pJob] = 18;
	            PlayerInfo[playerid][pContractTime] = 5;
            	}
            }
            return 1;
            }
            case 6:
            {
            if (GetPlayerState(playerid) == 1)
            {
	            for(new i = 0; i<MAX_PLAYERS; i++)
	            {
	            SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Car Dealer :.");
	            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	            PlayerInfo[playerid][pJob] = 10;
	            PlayerInfo[playerid][pContractTime] = 5;
            	}
            }
            return 1;
            }
            case 7:
            {
	            for(new i = 0; i<MAX_PLAYERS; i++)
	            {
	            SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Paper Boy :.");
	            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	            PlayerInfo[playerid][pJob] = 15;
	            PlayerInfo[playerid][pContractTime] = 5;
            	}
            }
            return 1;
            }
            case 8:
            {
	            for(new i = 0; i<MAX_PLAYERS; i++)
	            {
	            SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Farmer :.");
	            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	            PlayerInfo[playerid][pJob] = 17;
	            PlayerInfo[playerid][pContractTime] = 5;
            	}
            }
            return 1;
            }
            case 9:
            {
	            for(new i = 0; i<MAX_PLAYERS; i++)
	            {
	            SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Trucker :.");
	            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	            PlayerInfo[playerid][pJob] = 16;
	            PlayerInfo[playerid][pContractTime] = 5;
           		}
            }
            return 1;
            }
            case 10:
            {
	            for(new i = 0; i<MAX_PLAYERS; i++)
	            {
	            SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Garbage Collector :.");
	            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	            PlayerInfo[playerid][pJob] = 19;
	            PlayerInfo[playerid][pContractTime] = 5;
				}
            }
            return 1;
     	}
	}
	return 0;
}
why is it same??:O:O (
Reply


Messages In This Thread
Help[rep] - by Dan_Barocu - 15.03.2012, 16:26
Re: Help[rep] - by Dan_Barocu - 15.03.2012, 16:36
Re: Help[rep] - by Dan_Barocu - 15.03.2012, 17:07
Re: Help[rep] - by Vince - 15.03.2012, 17:09
Re: Help[rep] - by GNGification - 15.03.2012, 17:17
Re: Help[rep] - by Dan_Barocu - 15.03.2012, 17:21
Re: Help[rep] - by GNGification - 15.03.2012, 17:23
Re: Help[rep] - by Dan_Barocu - 15.03.2012, 17:46
Re: Help[rep] - by Mauzen - 15.03.2012, 18:03
Re: Help[rep] - by Dan_Barocu - 15.03.2012, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)