Pickup problem
#1

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
Reply
#2

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.
Reply
#3

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.
Reply
#4

You cant create pickups in coordinates bigger than 3000.0
Reply
#5

ok thx
Reply
#6

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(playeridcmdtext[])
{
    if (
strcmp("/pos"cmdtexttrue) == 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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)