SA-MP Forums Archive
Creating a jobs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Creating a jobs (/showthread.php?tid=63887)



Creating a jobs - crunch112 - 31.01.2009

Hey all guys... how i can create any yob like Cop, Paramedic, GunDieler, TaxiDriver, TruckDriver, Hitman and how i can remove BUG... when i spawned i didnt see anything and i need to enter the police station then i se normaly...


Sry for my bad english!!


Re: Creating a jobs - Auto-Sized - 01.02.2009

I think you might be learning to code so I would suggest you look at some filterscripts to get some idea of the code. If you find that to hard then you can use the filterscript. Go here and type jobs in search.

http://forum.sa-mp.com/index.php?board=62.0

As for your second question its always better to post the code you tried. I think you may be trying to spawn in a interior and you have incomplete code.


Re: Creating a jobs - crunch112 - 01.02.2009

Quote:
Originally Posted by Davi_Vercada
I tryed using "dini" instead of <dini> and it still wont work,i've been trying different things for 8 hours now
Код:
#include "a_samp"
#include "dini"
#include "dutls"
Quote:

C:\DOCUME~1\xp\Desktop\SAMP02~1.WIN\GAMEMO~1\meeee .pwn(5) : fatal error 100: cannot read from file: "dini"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

How can i fix it?


Re: Creating a jobs - [4k]Wang - 01.02.2009

Example of what you can do.

static gTeam[MAX_PLAYERS];
Under Script includes.
Example:
Код:
// Script Includes
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
#pragma tabsize 0

static gTeam[MAX_PLAYERS];
Make sure you define the team!
#define TEAM_POLICE
Place this somewhere bellow the Script includes!

Also put this under request class
"SetPlayerTeamFromClass(playerid)"
Example:
Код:
public OnPlayerRequestClass(playerid, classid)
    SetPlayerTeamFromClass(playerid)"
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
Example of a setting a team:
Код:
SetPlayerTeamFromClass(playerid)
{
 	if (GetPlayerTeam(playerid) == 1)
	{
		gTeam[playerid] = TEAM_UNEMPLOYED;
	}
	if (GetPlayerTeam(playerid) == 2)
	{
	  gTeam[playerid] = TEAM_PILOTS;
	}
}
Hope this help's.


Re: Creating a jobs - crunch112 - 01.02.2009

I am download it and now he say:


Quote:

C:\DOCUME~1\xp\Desktop\SAMP02~1.WIN\GAMEMO~1\meeee .pwn(6) : fatal error 100: cannot read from file: "dutls"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Where i can finde that?


Re: Creating a jobs - crunch112 - 01.02.2009

I have police job... i need Taxi job


Re: Creating a jobs - smallo - 01.02.2009

same place you got dini
and dont double post


Re: Creating a jobs - [4k]Wang - 01.02.2009

Downloaded what?
And simple fix.
Do you have messanger i will show you.
Add me if you do and i can guide you quicker, My adress is bellow my picture feel free.


Re: Creating a jobs - crunch112 - 01.02.2009

xfire- crunch112


Re: Creating a jobs - Auto-Sized - 01.02.2009

http://www.dracoblue.net/index.php?i...35&Language=en

both are there.