06.04.2011, 07:04
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
Thats the repair pickup thing and i wanna add this CMD to it
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!
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);
}
pawn Код:
CMD:repair(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, x,y,z))
{
SendClientMessage(playerid, 0xFFFFFFFF, "Cock");
}
}
Thanks!