Help needed with repair pickups
#1

Hey today i was trying to create things like repair pickups But i wanna add a command on it
if im near the command should only work but i dont know how to :S
pawn Код:
AddRepairPickup(Float:x, Float:y, Float:z)
{
    CreatePickup(3096, 1, x, y, z + 0.2, 0); // Type 1, cannot be pickup up, exists all the time
    // Add a 3DText message above the refuel-pickup
    Create3DTextLabel("Drive into here", 0x008080FF, x, y, z + 0.8, 30.0, 0);
}
Thats the repair pickup thing and i wanna add this CMD to it
pawn Код:
CMD:repair(playerid, params[])
{
        if(IsPlayerInRangeOfPoint(playerid, 7.0, x,y,z))
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "Cock");
        }
}
But this doesnt work because it cant find the X,Y,Z of the AddRepairPickup how to fix this if you can help me i will thank you!

Thanks!
Reply


Messages In This Thread
Help needed with repair pickups - by thimo - 06.04.2011, 07:04
Re: Help needed with repair pickups - by [DJ]Boki - 06.04.2011, 07:07
Re: Help needed with repair pickups - by [BKR]LUCAGRABACR - 06.04.2011, 07:19
Re: Help needed with repair pickups - by thimo - 06.04.2011, 07:42
Re: Help needed with repair pickups - by thimo - 07.04.2011, 10:26
Re: Help needed with repair pickups - by THE_KNOWN - 07.04.2011, 10:29
Re: Help needed with repair pickups - by thimo - 07.04.2011, 10:42
Re: Help needed with repair pickups - by [DJ]Boki - 07.04.2011, 10:43
Re: Help needed with repair pickups - by thimo - 07.04.2011, 10:51
Re: Help needed with repair pickups - by [DJ]Boki - 07.04.2011, 10:56

Forum Jump:


Users browsing this thread: 1 Guest(s)