:problem:
Nem tudom miért nem mûködik...
Itt a full:
#include <a_samp>
#include <zcmd>
new gMunka[MAX_PLAYERS];
new GotMilk[MAX_PLAYERS];
new CP1, CP2, CP3, CP4, CP5, CP6, CP7, CP8;
forward UnFreezePlayer(playerid);
#define MUNKA_NINCS 0
#define MUNKA_COWBOY 1
CMD:elfogadmunka(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1528.3557, 1215.5189, 10.8125))
{
if(gMunka[playerid] == MUNKA_NINCS)
{
gMunka[playerid] = MUNKA_COWBOY;
SendClientMessage(playerid, -1, \"Elfogadtad a munkát!\");
return 1;
} else {
SendClientMessage(playerid, -1, \"Már van munkád!\");
}
} else {
SendClientMessage(playerid, -1, \"Nem vagy a munkánál!\");
}
return 1;
}
CMD:munkakezd(playerid, params[])
{
if(gMunka[playerid] == MUNKA_COWBOY)
{
CP1 = SetPlayerCheckpoint(playerid, 1515.7786,1227.2740,10.9468, 2.0);
SendClientMessage(playerid, -1, \"Elkezdtél dolgozni! Menj, és fejd meg a tehenet!\");
} else {
SendClientMessage(playerid, -1, \"Nem vagy cowboy!\");
}
return 1;
}
CMD:tejlead(playerid, params[])
{
if(gMunka[playerid] == MUNKA_COWBOY)
{
if(GotMilk[playerid] >= 1)
{
SendClientMessage(playerid, -1, \"Leadtad ezért megkaptad a jutalmad! (500 $ és 1 Pont)\");
GivePlayerMoney(playerid, 500);
GotMilk[playerid]--;
SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
} else {
SendClientMessage(playerid, -1, \"Nincs tejed!\");
}
} else {
SendClientMessage(playerid, -1, \"Nem vagy cowboy!\");
}
return 1;
}
CMD:munkabefejez(playerid, params[])
{
if(gMunka[playerid] == MUNKA_COWBOY)
{
SendClientMessage(playerid, -1, \"Befejezted a munkát!\");
DisablePlayerCheckpoint(playerid);
} else {
SendClientMessage(playerid, -1, \"Nem vagy cowboy!\");
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(CP1)
{
SetTimer(\"UnFreezePlayer\", 5000, false);
GotMilk[playerid]++;
DisablePlayerCheckpoint(playerid);
CP2 = SetPlayerCheckpoint(playerid, 1509.6528,1217.0497,10.9375, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP2)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP3 = SetPlayerCheckpoint(playerid, 1500.0675,1226.9259,11.0531, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP3)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP4 = SetPlayerCheckpoint(playerid, 1501.4376,1254.4552,11.0445, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP4)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP5 = SetPlayerCheckpoint(playerid, 1499.6357,1264.3749,11.0499, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP5)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP6 = SetPlayerCheckpoint(playerid, 1505.1816,1285.6637,11.0211, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP6)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP7 = SetPlayerCheckpoint(playerid, 1511.2065,1278.6943,10.9761, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP7)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP8 = SetPlayerCheckpoint(playerid, 1519.5472,1247.9701,10.9045, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP8)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP1 = SetPlayerCheckpoint(playerid, 1515.7786,1227.2740,10.9468, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
return 1;
}
public UnFreezePlayer(playerid)
{
ClearAnimations(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}#include <a_samp>
#include <zcmd>
new gMunka[MAX_PLAYERS];
new GotMilk[MAX_PLAYERS];
new CP1, CP2, CP3, CP4, CP5, CP6, CP7, CP8;
forward UnFreezePlayer(playerid);
#define MUNKA_NINCS 0
#define MUNKA_COWBOY 1
CMD:elfogadmunka(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1528.3557, 1215.5189, 10.8125))
{
if(gMunka[playerid] == MUNKA_NINCS)
{
gMunka[playerid] = MUNKA_COWBOY;
SendClientMessage(playerid, -1, \"Elfogadtad a munkát!\");
return 1;
} else {
SendClientMessage(playerid, -1, \"Már van munkád!\");
}
} else {
SendClientMessage(playerid, -1, \"Nem vagy a munkánál!\");
}
return 1;
}
CMD:munkakezd(playerid, params[])
{
if(gMunka[playerid] == MUNKA_COWBOY)
{
CP1 = SetPlayerCheckpoint(playerid, 1515.7786,1227.2740,10.9468, 2.0);
SendClientMessage(playerid, -1, \"Elkezdtél dolgozni! Menj, és fejd meg a tehenet!\");
} else {
SendClientMessage(playerid, -1, \"Nem vagy cowboy!\");
}
return 1;
}
CMD:tejlead(playerid, params[])
{
if(gMunka[playerid] == MUNKA_COWBOY)
{
if(GotMilk[playerid] <= 1)
{
SendClientMessage(playerid, -1, \"Leadtad ezért megkaptad a jutalmad! (500 $ és 1 Pont)\");
GivePlayerMoney(playerid, 500);
GotMilk[playerid]--;
SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
} else {
SendClientMessage(playerid, -1, \"Nincs tejed!\");
}
} else {
SendClientMessage(playerid, -1, \"Nem vagy cowboy!\");
}
return 1;
}
CMD:munkabefejez(playerid, params[])
{
if(gMunka[playerid] == MUNKA_COWBOY)
{
SendClientMessage(playerid, -1, \"Befejezted a munkát!\");
DisablePlayerCheckpoint(playerid);
} else {
SendClientMessage(playerid, -1, \"Nem vagy cowboy!\");
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(CP1)
{
SetTimer(\"UnFreezePlayer\", 5000, false);
GotMilk[playerid]++;
DisablePlayerCheckpoint(playerid);
CP2 = SetPlayerCheckpoint(playerid, 1509.6528,1217.0497,10.9375, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP2)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP3 = SetPlayerCheckpoint(playerid, 1500.0675,1226.9259,11.0531, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP3)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP4 = SetPlayerCheckpoint(playerid, 1501.4376,1254.4552,11.0445, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP4)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP5 = SetPlayerCheckpoint(playerid, 1499.6357,1264.3749,11.0499, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP5)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP6 = SetPlayerCheckpoint(playerid, 1505.1816,1285.6637,11.0211, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP6)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP7 = SetPlayerCheckpoint(playerid, 1511.2065,1278.6943,10.9761, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP7)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP8 = SetPlayerCheckpoint(playerid, 1519.5472,1247.9701,10.9045, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP8)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP1 = SetPlayerCheckpoint(playerid, 1515.7786,1227.2740,10.9468, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
return 1;
}
public UnFreezePlayer(playerid)
{
ClearAnimations(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}#include <a_samp>
#include <zcmd>
new gMunka[MAX_PLAYERS];
new GotMilk[MAX_PLAYERS];
new CP1, CP2, CP3, CP4, CP5, CP6, CP7, CP8;
forward UnFreezePlayer(playerid);
#define MUNKA_NINCS 0
#define MUNKA_COWBOY 1
CMD:elfogadmunka(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1528.3557, 1215.5189, 10.8125))
{
if(gMunka[playerid] == MUNKA_NINCS)
{
gMunka[playerid] = MUNKA_COWBOY;
SendClientMessage(playerid, -1, \"Elfogadtad a munkát!\");
return 1;
} else {
SendClientMessage(playerid, -1, \"Már van munkád!\");
}
} else {
SendClientMessage(playerid, -1, \"Nem vagy a munkánál!\");
}
return 1;
}
CMD:munkakezd(playerid, params[])
{
if(gMunka[playerid] == MUNKA_COWBOY)
{
CP1 = SetPlayerCheckpoint(playerid, 1515.7786,1227.2740,10.9468, 2.0);
SendClientMessage(playerid, -1, \"Elkezdtél dolgozni! Menj, és fejd meg a tehenet!\");
} else {
SendClientMessage(playerid, -1, \"Nem vagy cowboy!\");
}
return 1;
}
CMD:tejlead(playerid, params[])
{
if(gMunka[playerid] == MUNKA_COWBOY)
{
if(GotMilk[playerid] <= 1)
{
SendClientMessage(playerid, -1, \"Leadtad ezért megkaptad a jutalmad! (500 $ és 1 Pont)\");
GivePlayerMoney(playerid, 500);
GotMilk[playerid]--;
SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
} else {
SendClientMessage(playerid, -1, \"Nincs tejed!\");
}
} else {
SendClientMessage(playerid, -1, \"Nem vagy cowboy!\");
}
return 1;
}
CMD:munkabefejez(playerid, params[])
{
if(gMunka[playerid] == MUNKA_COWBOY)
{
SendClientMessage(playerid, -1, \"Befejezted a munkát!\");
DisablePlayerCheckpoint(playerid);
} else {
SendClientMessage(playerid, -1, \"Nem vagy cowboy!\");
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(CP1)
{
SetTimer(\"UnFreezePlayer\", 5000, false);
GotMilk[playerid]++;
DisablePlayerCheckpoint(playerid);
CP2 = SetPlayerCheckpoint(playerid, 1509.6528,1217.0497,10.9375, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP2)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP3 = SetPlayerCheckpoint(playerid, 1500.0675,1226.9259,11.0531, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP3)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP4 = SetPlayerCheckpoint(playerid, 1501.4376,1254.4552,11.0445, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP4)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP5 = SetPlayerCheckpoint(playerid, 1499.6357,1264.3749,11.0499, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP5)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP6 = SetPlayerCheckpoint(playerid, 1505.1816,1285.6637,11.0211, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP6)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP7 = SetPlayerCheckpoint(playerid, 1511.2065,1278.6943,10.9761, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP7)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP8 = SetPlayerCheckpoint(playerid, 1519.5472,1247.9701,10.9045, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP8)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP1 = SetPlayerCheckpoint(playerid, 1515.7786,1227.2740,10.9468, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
return 1;
}
public UnFreezePlayer(playerid)
{
ClearAnimations(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}#include <a_samp>
#include <zcmd>
new gMunka[MAX_PLAYERS];
new GotMilk[MAX_PLAYERS];
new CP1, CP2, CP3, CP4, CP5, CP6, CP7, CP8;
forward UnFreezePlayer(playerid);
#define MUNKA_NINCS 0
#define MUNKA_COWBOY 1
CMD:elfogadmunka(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1528.3557, 1215.5189, 10.8125))
{
if(gMunka[playerid] == MUNKA_NINCS)
{
gMunka[playerid] = MUNKA_COWBOY;
SendClientMessage(playerid, -1, \"Elfogadtad a munkát!\");
return 1;
} else {
SendClientMessage(playerid, -1, \"Már van munkád!\");
}
} else {
SendClientMessage(playerid, -1, \"Nem vagy a munkánál!\");
}
return 1;
}
CMD:munkakezd(playerid, params[])
{
if(gMunka[playerid] == MUNKA_COWBOY)
{
CP1 = SetPlayerCheckpoint(playerid, 1515.7786,1227.2740,10.9468, 2.0);
SendClientMessage(playerid, -1, \"Elkezdtél dolgozni! Menj, és fejd meg a tehenet!\");
} else {
SendClientMessage(playerid, -1, \"Nem vagy cowboy!\");
}
return 1;
}
CMD:tejlead(playerid, params[])
{
if(gMunka[playerid] == MUNKA_COWBOY)
{
if(GotMilk[playerid] <= 1)
{
SendClientMessage(playerid, -1, \"Leadtad ezért megkaptad a jutalmad! (500 $ és 1 Pont)\");
GivePlayerMoney(playerid, 500);
GotMilk[playerid]--;
SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
} else {
SendClientMessage(playerid, -1, \"Nincs tejed!\");
}
} else {
SendClientMessage(playerid, -1, \"Nem vagy cowboy!\");
}
return 1;
}
CMD:munkabefejez(playerid, params[])
{
if(gMunka[playerid] == MUNKA_COWBOY)
{
SendClientMessage(playerid, -1, \"Befejezted a munkát!\");
DisablePlayerCheckpoint(playerid);
} else {
SendClientMessage(playerid, -1, \"Nem vagy cowboy!\");
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(CP1)
{
SetTimer(\"UnFreezePlayer\", 5000, false);
GotMilk[playerid]++;
DisablePlayerCheckpoint(playerid);
CP2 = SetPlayerCheckpoint(playerid, 1509.6528,1217.0497,10.9375, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP2)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP3 = SetPlayerCheckpoint(playerid, 1500.0675,1226.9259,11.0531, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP3)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP4 = SetPlayerCheckpoint(playerid, 1501.4376,1254.4552,11.0445, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP4)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP5 = SetPlayerCheckpoint(playerid, 1499.6357,1264.3749,11.0499, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP5)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP6 = SetPlayerCheckpoint(playerid, 1505.1816,1285.6637,11.0211, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP6)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP7 = SetPlayerCheckpoint(playerid, 1511.2065,1278.6943,10.9761, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP7)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP8 = SetPlayerCheckpoint(playerid, 1519.5472,1247.9701,10.9045, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
if(CP8)
{
GotMilk[playerid]++;
SetTimer(\"UnFreezePlayer\", 5000, false);
DisablePlayerCheckpoint(playerid);
CP1 = SetPlayerCheckpoint(playerid, 1515.7786,1227.2740,10.9468, 2.0);
SendClientMessage(playerid, -1, \"Elkezdted fejni a tehenet!\");
TogglePlayerControllable(playerid, 0);
}
return 1;
}
public UnFreezePlayer(playerid)
{
ClearAnimations(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}