Creating a jobs
#1

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!!
Reply
#2

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.
Reply
#3

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?
Reply
#4

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.
Reply
#5

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?
Reply
#6

I have police job... i need Taxi job
Reply
#7

same place you got dini
and dont double post
Reply
#8

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.
Reply
#9

xfire- crunch112
Reply
#10

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

both are there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)