04.05.2017, 18:46
Hello guyz, there a problem... im making a pickups in same placeses so After i enter the pickup i'll spawned in another locations so i mean's After Entering Pickpus i have 2places there so i want make it spawns in the pickups
and here the pickups. its differnts. but i dont know Why i'll spawned in random spawns.
In the Top script :-
new Ammu1[5];
// So what wrong here?
Код:
Ammu1[2] = CreateDynamicPickup(19135, 2, 315.6982,-143.6353,999.6016, -1, -1, -1, 100.0); Ammu1[1] = CreateDynamicPickup(19135, 2, 315.6982,-143.6353,999.6016, -1, -1, -1, 100.0);
In the Top script :-
new Ammu1[5];
PHP код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
if(pickupid == Ammu1[1]) //Ammunation Com-alot
{
SetPlayerPos(playerid, 2156.5938,943.8235,10.8203);
SetPlayerInterior(playerid, 0);
}
if(pickupid == Ammu1[2]) //Ammunation OLD VERNTERS STRIP
{
SetPlayerPos(playerid, 2537.3750,2084.0583,10.8203);
SetPlayerInterior(playerid, 0);
}
return 1;
}


