Pickup problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pickup problem (
/showthread.php?tid=296735)
Pickup problem -
timaoux - 12.11.2011
have a min X, Y, Z and max X, Y, Z pos for the pickup ?, because i try create a pickup outside the map and it doesnt work but on the map it work.
here the coor of the pickup
pawn Код:
6568.0752,-6455.3359,14.9511
thx
Re: Pickup problem -
=WoR=G4M3Ov3r - 12.11.2011
Why would you want to create a pickup outside the map ?, just set the Float:X, Float:Y, Float:Z where you want the pickup to be.
Re : Pickup problem -
timaoux - 12.11.2011
i want create a pickup outside the map because i created a custom map
but the pickup doesnt appear where i want, it appear on the middle of the map.
Re: Pickup problem -
Pharrel - 12.11.2011
You cant create pickups in coordinates bigger than 3000.0
Re : Pickup problem -
timaoux - 12.11.2011
ok thx
Re: Re : Pickup problem -
=WoR=G4M3Ov3r - 12.11.2011
Quote:
Originally Posted by timaoux
i want create a pickup outside the map because i created a custom map
but the pickup doesnt appear where i want, it appear on the middle of the map.
|
Its because you've put in incorrect X, Y, Z of the location you want it to be.
use this cmd to get the floats
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/pos", cmdtext, true) == 0)
{
new string1[256];
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
format(string1,sizeof(string1),"Position = X: %.0f , Y: %.0f , Z: %.0f",X,Y,Z);
SendClientMessage(playerid,COLOR_GREEN,string1);
return 1;
}
And insert em in your CreatePickup native.
unless you went higher than about 2900.