15.11.2013, 12:58
pawn Code:
new Float:BoughtSpawns[][3] =
{
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781)
};
new BS[sizeof(BoughtSpawns)];
pawn Code:
for(new i = 0; i < sizeof(BoughtSpawns); i++)
{
BS[i] = CreateDynamicPickup(1313, 1, BoughtSpawns[i][0], BoughtSpawns[i][1], BoughtSpawns[i][2]);
}
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
for(new i = 0; i < sizeof(BoughtSpawns); i++)
{
if(pickupid == BS[i])
{
GameTextForPlayer(playerid, "~l~~h~DO ~g~/buyspawn ~l~~h~TO BUY THIS SPAWN!", 2000, 5);
}
}
return 1;
}
I haven't worked with these in a while, but give it a shot and see if it works.