- 0
Imi da crash pawno si nu stiu de ce.
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
AlexuTzuBss
Asta am in gm:
//Server
#define SERVER_NAME "RPG.DIAMONDCOCAINE.RO"
#define SERVER_PASSWORD "parola1234"
#define SERVER_VERSION "v0.0.1"
//Define
#define JOB_NAME1 "Mecanic de usi"
#define JOB_VEH1 422
#define SCM SendClientMessage
#define MAX_JOBS 15
//Include
#include <a_samp>
#include <fly>
#include <zcmd>
#include <sscanf2>
#include <foreach>
new PlayerJob[MAX_PLAYERS];
new JobCP[MAX_PLAYERS];
new PlayerCar[MAX_PLAYERS];
new JobWorking[MAX_PLAYERS];
//CMD
CMD:fly(playerid, params[])
{
InitFly(playerid);
StartFly(playerid);
SetPlayerHealth(playerid, 1000000);
SCM(playerid, 0x00FFFFFF, "Ai intrat in flymode!");
return 1;
}
CMD:sfly(playerid, params[])
{
StopFly(playerid);
SetPlayerHealth(playerid, 100);
SCM(playerid, 0x00FFFFFF, "Ai iesit din flymode!");
return 1;
}
CMD:healme(playerid, params[])
{
SetPlayerHealth(playerid, 100);
SCM(playerid, 0xFF00E1FF, "Ti-a fost setat viata la 100HP!");
return 1;
}
CMD:getjob(playerid, params[])
{
if(PlayerJob[playerid] != 0) return SCM(playerid, 0x1EFF00FF, "Ai deja un job!");
new string[256];
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2102.3047,2226.5552,11.0234))
{
PlayerJob[playerid] = 1;
format(string, sizeof(string), "Ai primit jobul %s.Foloseste comanda /work!", JOB_NAME1);
SCM(playerid, 0x16BF00FF, string);
return 1;
}
else SCM(playerid, 0x1EFF00FF, "Nu esti la nici un job!");
return 1;
}
CMD:quitjob(playerid, params[])
{
if(PlayerJob[playerid] == 0) return SCM(playerid, 0x1EFF00FF, "Nu ai un job!");
if(JobWorking(playerid) == 1) FailJob(playerid, "Ai renuntat la acest job!");
PlayerJob[playerid] = 0;
SCM(playerid, 0x16BF00FF, "Ai renuntat la job!");
return 1;
}
CMD:work(playerid, params[])
{
if(PlayerJob[playerid] == 0) return SCM(playerid, 0x1EFF00FF, "Nu ai un job!");
switch(PlayerJob[playerid])
{
case 1;
{
if(!IsPlayerInRangeOfPoint(playerid, 10.0, 2103.1055,2214.8696,10.8203))
{
SCM(playerid, 0x16BF00FF, "Nu esti in zona joburilor!");
SetPlayerCheckpoint(playerid, 2103.1055,2214.8696,10.8203, 10.0);
JobCP[playerid] = 1;
return 1;
}
PlayerCar[playerid] = CreateVehicle(JOB_VEH1, 2103.2856, 2215.3020, 10.7802, -88.9800, -1, -1, 100);
PutPlayerInVehicle(playerid, JOB_VEH1, 0);
JobWorking[playerid] = 1;
JobCP[playerid] = 2;
SetPlayerCheckpoint(playerid, 2017.5111, 1919.1218, 12.4550, 5.0);
}
}
return 1;
}
//Alte chestii
main()
{
}
forward FailJob(playerid);
public FailJob(playerid)
{
DestroyVehicle(PlayerCar);
PlayerCar[playerid] = 0;
JobWorking[playerid] = 0;
DisablePlayerCheckpoint(playerid);
JobCP[playerid] = 0;
return 1;
}
forward FinishJob(playerid, reason[]);
public FinishJob(playerid, reason[])
{
new string[256];
format(string, sizeof(string), "Munca ta a esuat! Motiv: %s", reason);
SCM(playerid, 0xFFFF00FF, string);
DestroyVehicle(PlayerCar);
PlayerCar[playerid] = 0;
JobWorking[playerid] = 0;
DisablePlayerCheckpoint(playerid);
JobCP[playerid] = 0;
return 1;
}
public OnPlayerConnect(playerid)
{
PlayerCar[playerid] = 0;
JobCP[playerid] = 0;
PlayerJob[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
if(JobWorking(playerid) == 1) FailJob(playerid, "Deconectare!");
return 1;
}
public OnPlayerSpawn(playerid)
{
if(JobWorking(playerid) == 1) FailJob(playerid, "Ai fost respawnat!");
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
new string[256];
switch(JobCP[playerid])
{
case 1;
{
DisablePlayerCheckpoint(playerid);
JobCP[playerid] = 0;
SCM(playerid, -1, "Acum poti folosi /work!");
}
case 2; SetPlayerCheckpoint(playerid, 2239.0498, 1286.7819, 10.8203, 5.0), JobCP[playerid] ++;
case 3; SetPlayerCheckpoint(playerid, 2635.4045, 1850.0782, 11.0234, 5.0), JobCP[playerid] ++;
case 4; SetPlayerCheckpoint(playerid, 2015.5530, 1151.5247, 10.8203, 5.0), JobCP[playerid] ++;
case 5;
{
DisablePlayerCheckpoint(playerid);
new money = 100000 + random(100000);
format(string, sizeof(string), "Ai terminat de muncit si ai primit $%d", money);
SCM(playerid, 0x00FFFFFF, string);
GivePlayerMoney(playerid, money);
FinishJob(playerid);
}
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(JobWorking(playerid) == 1) FailJob(playerid, "Ai fost omorat!");
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_ONFOOT)
{
FailJob(playerid, "Deconectare");
}
return 1;
}
Si asta imi da la detalii la pawno :
Problem signature:
Problem Event Name: APPCRASH
Application Name: pawncc.exe
Application Version: 3.2.3664.0
Application Timestamp: 4655bfe0
Fault Module Name: PAWNC.dll
Fault Module Version: 3.2.3664.0
Fault Module Timestamp: 4655bfdf
Exception Code: c0000005
Exception Offset: 000119ec
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1048
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now