View Full Version : Scary pickup bug...

10/12/2011, 08:40 PM
Alrighty, I made a pickup spawn at the person that got killed's position and it spawns at the killers position. EX:

new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);

kcP[playerid] = CreatePickup(1247, 19, x, y, z, 1);

And it spawns at the KILLERS position. I didnt set playerid = to killerid in my script so i know its a glitch of some sort. Any ideas?

10/12/2011, 09:00 PM
I still cant figure this out... Any ideas?

10/12/2011, 09:48 PM

This forum requires that you wait 120 seconds between posts. Please try again in 100 seconds.

10/12/2011, 09:57 PM
You have this under OnPlayerDeath correct?

10/12/2011, 09:58 PM
Yes sir.

10/12/2011, 10:01 PM
Im a decent scripter, but i do not see anything wrong with this code..

Can a more advanced scripter please look at this, as i dont see the problem

10/12/2011, 10:47 PM
There's nothing wrong with the code.

10/12/2011, 11:03 PM
So why is it doing this? Server glitch? I really wanna figure this out...

EDIT: Come to to see it. And chat about it. And stuffs.

10/12/2011, 11:06 PM
is that all your code in OPD()? wll, include the part for creating the pickup into a stock, then let it get called from inside the OPD(). then add a CMD:cp to call the same stock, add a SendClientMessageToAll() with the coords. at least this should help at finding the coords, they must be ok to assume a bug...

10/12/2011, 11:09 PM
stock CP(playerid)
new Float:xx, Float:yx, Float:zx, str[64];
GetPlayerPos(playerid, xx, yx, zx);

kcP[playerid] = CreatePickup(1247, 19, xx, yx, zx, 1);

format(str, sizeof(str), "x:%0.3f y:%0.2f z%0.2f", x, y, z);
SendClientMessageToAll(-1, str);
return 1;

Come see it at and btw i havent tested that yet so..

EDIT: Thats not what u meant?

10/12/2011, 11:17 PM
Lol 3 post

10/12/2011, 11:18 PM