Jump to content

[Job]Gunoier


Джо

Recommended Posts

Salutare SA-MP Romania!

Am revenit cu un nou job,si anume jobul de gunoier.

Practic vedeti in videoclipuri (cele 3 parti) pentru a putea vedea ce face si ce executa acest job.

Timp de lucru: 4h cu pauza la 20 minute,cate 20 minute,o pauza de o tigara/2/3/7...

Videoclipuri:

 

 

Cod:

http://pastebin.com/0A1e7Wdz

Edited by Джо
  • Upvote 1

 

 

Link to comment
Share on other sites

10 hours ago, Джо said:

Salutare SA-MP Romania!

Am revenit cu un nou job,si anume jobul de gunoier.

Practic vedeti in videoclipuri (cele 3 parti) pentru a putea vedea ce face si ce executa acest job.

Timp de lucru: 4h cu pauza la 20 minute,cate 20 minute,o pauza de o tigara/2/3/7...

Videoclipuri:

 

 

Cod:

http://pastebin.com/0A1e7Wdz

New gunoiercar trebuia definit ca variabila per player, pentru că, în felul în care ai făcut acolo se creează un singur vehicul global si daca da un player /work muncește, vine altul Da iar /work îl pune în același vehicul.

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

Puteai face mai simplu facand ceva de genul nu 100 de public-uri cu timer fara sens.

function JobGarbage( playerid )
{
	DisablePlayerCheckpoint( playerid );
	playerVariables[ playerid ][ pCP ] = 10070;
	playerVariables[ playerid ][ pGarbageCP ]++;

	switch( playerVariables[ playerid ][ pGarbageCP ] )
	{
		case 1..19:
		{
			SelectRandomGarbage( playerid );
			TogglePlayerControllable( playerid, true );

			new garbageCP = playerVariables[ playerid ][ pJobLastCP ];
			InfoTD_MSG( playerid, 5000, "Gunoi colectat (~r~%d/20~w~~h~).~n~Urmatorul tomberon se afla in: ~y~~h~%s (LS)", 
				playerVariables[ playerid ][ pGarbageCP ], GetPlayer3DZone2( gRandomGarbage[ garbageCP ][ 0 ], gRandomGarbage[ garbageCP ][ 1 ], gRandomGarbage[ garbageCP ][ 2 ] ) );

			UpdateJobBox( playerid, Iter_Count(PlayerGarbage), "Colecteaza gunoiul din Los Santos~n~~y~~h~Info! ~w~~h~Sunteti platiti la descarcarea gunoiului!" );
		}
		case 20:
		{
			//CheckPlayerQuest( playerid, QUEST_GARBAGE );
			UpdateJobStats( playerVariables[ playerid ][ pJob ] );
			TogglePlayerControllable( playerid, true );
			InfoTD_MSG( playerid, 5000, "Masina este plina!~n~Descarca gunoiul colectat la groapa de gunoi indicata pe GPS!" );
			SetPlayerCheckpoint( playerid, 2175.1179, -2001.5468, 13.6539, 8.0 );
			playerVariables[ playerid ][ pGarbageCP ] = 99;
		}
		case 100:
		{
			PayPlayerJob( playerid, 13 );
			SelectRandomGarbage( playerid );
			TogglePlayerControllable( playerid, true );
			UpdatePlayerSkill( playerid, playerVariables[ playerid ][ pJob ] );
			playerVariables[ playerid ][ pGarbageCP ] = 0;

			UpdateJobBox( playerid, Iter_Count(PlayerGarbage), "Colecteaza gunoiul din Los Santos~n~~y~~h~Info! ~w~~h~Sunteti platiti la descarcarea gunoiului!" );
			InfoTD_MSG( playerid, 10000, "Ai descarcat gunoiul si ai fost platit cu ~g~$%s~n~~w~~h~Urmeaza traseul pentru a colecta gunoiul din Los Santos!~n~Skill-ul se aplica la descarcarea gunoiului!", FormatNumber( playerVariables[ playerid ][ pJobValue ] ) );
		}
	}
}

 

Sinner.png

Link to comment
Share on other sites

  • 10 months later...

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.