10.11.2016, 10:31
How do I change the spawn of this loot
to a random one. I made the random spawn float variable already. The problem is only here. This is how a player will receive the loot.
How do I change
so that when the player is in range of the random loot spawn, he will get the M4A1. Cause I just cant use the random float spawn.
Sorry if I can't explain it well. I'm really confused on this that I don't even know how to explain it.
EDIT: DON'T MIND
PHP код:
RLootObjects[0] = CreateObject(19054, -1956.1447, 287.1091, 35.4688, 87.72005, -23.87996, 0.00000);
PHP код:
if (newkeys & KEY_NO)
{
if(IsValidObject(LootObjects[0]) && IsPlayerInRangeOfPoint(playerid,2.0,-1956.1447, 287.1091, 35.4688))
{
AddItem(playerid,"M4A1",1);
SendClientMessage(playerid, COLOR_GREEN, "* 1 M4A1 has been added to your inventory");
DestroyObject(LootObjects[0]);
}
Код:
if(IsValidObject(LootObjects[0]) && IsPlayerInRangeOfPoint(playerid,2.0,-1956.1447, 287.1091, 35.4688))
Sorry if I can't explain it well. I'm really confused on this that I don't even know how to explain it.
EDIT: DON'T MIND
Quote:
How do I change the spawn of this loot PHP код:
|