Hali
/szemetvisz parancsnál kapok egy objectet és azt kéne,hogy ha elkezdek futni a karakter akkor ejtse el azt a tárgyat... ha meg oldható elõre is köszönöm szépen.
Itt a parancs
CMD:szemetvisz(playerid,params[])
{
if(pInfo[playerid][Munka] == SZEMETES)
{
if(szemetetvisz[playerid] == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.5, 1628.2465,692.3661,11.8898))
{
if(kuka1 == 1)
{
SetPlayerCheckpoint(playerid, 1647.4519,676.3967,10.8203 ,2.0);
SetPlayerAttachedObject(playerid,szemetviseles(playerid),1265,6,0.257000,-0.078999,-0.124999,0.000000,-113.899955,0.000000,1.000000,1.000000,1.000000);
szemetetvisz[playerid] = 1;
SetTimerEx(\"kuka11\", 120000, 0, \"%i\", playerid);
kuka1 = 0;
new s2[200];
format(s2, 200, \"* %s kiszedte a szemetet egy kukábol\", Nev(playerid));
ProxDetector( 15.0, playerid, s2, LILA, LILA, LILA, LILA, LILA);
SendClientMessage(playerid, ZOLD, \"Kiszedted a szemett egy kukábol, el ne merd szórni!\");
}else SendClientMessage(playerid, NARANCS, \"Ez a kuka még nincs tele.\");
}
else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1636.1866,690.5361,11.9175))
{
if(kuka2 == 1)
{
SetPlayerCheckpoint(playerid, 1647.4519,676.3967,10.8203 ,2.0);
SetPlayerAttachedObject(playerid,szemetviseles(playerid),1265,6,0.257000,-0.078999,-0.124999,0.000000,-113.899955,0.000000,1.000000,1.000000,1.000000);
szemetetvisz[playerid] = 1;
SetTimerEx(\"kuka22\", 120000, 0, \"%i\", playerid);
kuka2 = 0;
new s2[200];
format(s2, 200, \"* %s kiszedte a szemetet egy kukábol\", Nev(playerid));
ProxDetector( 15.0, playerid, s2, LILA, LILA, LILA, LILA, LILA);
SendClientMessage(playerid, ZOLD, \"Kiszedted a szemett egy kukábol, el ne merd szórni!\");
}else SendClientMessage(playerid, NARANCS, \"Ez a kuka még nincs tele.\");
}
else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1622.5927,688.9702,12.0696))
{
if(kuka3 == 1)
{
SetPlayerCheckpoint(playerid, 1647.4519,676.3967,10.8203 ,2.0);
SetPlayerAttachedObject(playerid,szemetviseles(playerid),1265,6,0.257000,-0.078999,-0.124999,0.000000,-113.899955,0.000000,1.000000,1.000000,1.000000);
szemetetvisz[playerid] = 1;
SetTimerEx(\"kuka33\", 120000, 0, \"%i\", playerid);
kuka3 = 0;
new s2[200];
format(s2, 200, \"* %s kiszedte a szemetet egy kukábol\", Nev(playerid));
ProxDetector( 15.0, playerid, s2, LILA, LILA, LILA, LILA, LILA);
SendClientMessage(playerid, ZOLD, \"Kiszedted a szemett egy kukábol, el ne merd szórni!\");
}else SendClientMessage(playerid, NARANCS, \"Ez a kuka még nincs tele.\");
}
else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1617.9436,676.7985,15.4154))
{
if(kuka4 == 1)
{
SetPlayerCheckpoint(playerid, 1647.4519,676.3967,10.8203 ,2.0);
SetPlayerAttachedObject(playerid,szemetviseles(playerid),1265,6,0.257000,-0.078999,-0.124999,0.000000,-113.899955,0.000000,1.000000,1.000000,1.000000);
szemetetvisz[playerid] = 1;
SetTimerEx(\"kuka44\", 120000, 0, \"%i\", playerid);
kuka4 = 0;
new s2[200];
format(s2, 200, \"* %s kiszedte a szemetet egy kukábol\", Nev(playerid));
ProxDetector( 15.0, playerid, s2, LILA, LILA, LILA, LILA, LILA);
SendClientMessage(playerid, ZOLD, \"Kiszedted a szemett egy kukábol, el ne merd szórni!\");
}else SendClientMessage(playerid, NARANCS, \"Ez a kuka még nincs tele.\");
}
else if(IsPlayerInRangeOfPoint(playerid, 2.5, 0.0,0.0,0.0))
{
if(kuka5 == 1)
{
SetPlayerCheckpoint(playerid, 1647.4519,676.3967,10.8203 ,2.0);
SetPlayerAttachedObject(playerid,szemetviseles(playerid),1265,6,0.257000,-0.078999,-0.124999,0.000000,-113.899955,0.000000,1.000000,1.000000,1.000000);
szemetetvisz[playerid] = 1;
SetTimerEx(\"kuka55\", 120000, 0, \"%i\", playerid);
kuka5 = 0;
new s2[200];
format(s2, 200, \"* %s kiszedte a szemetet egy kukábol\", Nev(playerid));
ProxDetector( 15.0, playerid, s2, LILA, LILA, LILA, LILA, LILA);
SendClientMessage(playerid, ZOLD, \"Kiszedted a szemett egy kukábol, el ne merd szórni!\");
}else SendClientMessage(playerid, NARANCS, \"Ez a kuka még nincs tele.\");
}
else if(IsPlayerInRangeOfPoint(playerid, 2.5, 0.0,0.0,0.0))
{
if(kuka6 == 1)
{
SetPlayerCheckpoint(playerid, 1647.4519,676.3967,10.8203 ,2.0);
SetPlayerAttachedObject(playerid,szemetviseles(playerid),1265,6,0.257000,-0.078999,-0.124999,0.000000,-113.899955,0.000000,1.000000,1.000000,1.000000);
szemetetvisz[playerid] = 1;
SetTimerEx(\"kuka66\", 120000, 0, \"%i\", playerid);
kuka6 = 0;
new s2[200];
format(s2, 200, \"* %s kiszedte a szemetet egy kukábol\", Nev(playerid));
ProxDetector( 15.0, playerid, s2, LILA, LILA, LILA, LILA, LILA);
SendClientMessage(playerid, ZOLD, \"Kiszedted a szemett egy kukábol, el ne merd szórni!\");
}else SendClientMessage(playerid, NARANCS, \"Ez a kuka még nincs tele.\");
}
else if(IsPlayerInRangeOfPoint(playerid, 2.5, 0.0,0.0,0.0))
{
if(kuka7 == 1)
{
SetPlayerCheckpoint(playerid, 1647.4519,676.3967,10.8203 ,2.0);
SetPlayerAttachedObject(playerid,szemetviseles(playerid),1265,6,0.257000,-0.078999,-0.124999,0.000000,-113.899955,0.000000,1.000000,1.000000,1.000000);
szemetetvisz[playerid] = 1;
SetTimerEx(\"kuka77\", 120000, 0, \"%i\", playerid);
kuka7 = 0;
new s2[200];
format(s2, 200, \"* %s kiszedte a szemetet egy kukábol\", Nev(playerid));
ProxDetector( 15.0, playerid, s2, LILA, LILA, LILA, LILA, LILA);
SendClientMessage(playerid, ZOLD, \"Kiszedted a szemett egy kukábol, el ne merd szórni!\");
}else SendClientMessage(playerid, NARANCS, \"Ez a kuka még nincs tele.\");
}
else if(IsPlayerInRangeOfPoint(playerid, 2.5, 0.0,0.0,0.0))
{
if(kuka8 == 1)
{
SetPlayerCheckpoint(playerid, 1647.4519,676.3967,10.8203 ,2.0);
SetPlayerAttachedObject(playerid,szemetviseles(playerid),1265,6,0.257000,-0.078999,-0.124999,0.000000,-113.899955,0.000000,1.000000,1.000000,1.000000);
szemetetvisz[playerid] = 1;
SetTimerEx(\"kuka88\", 120000, 0, \"%i\", playerid);
kuka8 = 0;
new s2[200];
format(s2, 200, \"* %s kiszedte a szemetet egy kukábol\", Nev(playerid));
ProxDetector( 15.0, playerid, s2, LILA, LILA, LILA, LILA, LILA);
SendClientMessage(playerid, ZOLD, \"Kiszedted a szemett egy kukábol, el ne merd szórni!\");
}else SendClientMessage(playerid, NARANCS, \"Ez a kuka még nincs tele.\");
}
else if(IsPlayerInRangeOfPoint(playerid, 2.5, 0.0,0.0,0.0))
{
if(kuka9 == 1)
{
SetPlayerCheckpoint(playerid, 1647.4519,676.3967,10.8203 ,2.0);
SetPlayerAttachedObject(playerid,szemetviseles(playerid),1265,6,0.257000,-0.078999,-0.124999,0.000000,-113.899955,0.000000,1.000000,1.000000,1.000000);
szemetetvisz[playerid] = 1;
SetTimerEx(\"kuka99\", 120000, 0, \"%i\", playerid);
kuka9 = 0;
new s2[200];
format(s2, 200, \"* %s kiszedte a szemetet egy kukábol\", Nev(playerid));
ProxDetector( 15.0, playerid, s2, LILA, LILA, LILA, LILA, LILA);
SendClientMessage(playerid, ZOLD, \"Kiszedted a szemett egy kukábol, el ne merd szórni!\");
}else SendClientMessage(playerid, NARANCS, \"Ez a kuka még nincs tele.\");
}
}else SendClientMessage(playerid, PIROS, \"Már fölvettél egy szemeteszsákot!\");
}else SendClientMessage(playerid, PIROS, \"Nem vagy kukás!\");
return 1;
}