28.02.2014, 19:36
Alright so I got random spawn system for gifts, but how do I tell players where did it spawn?
Code:
How do I tell players know where it spawned?
Like if it spawned at KingHouse it will send all players message "It spawned at the KingsHouse"
Code:
pawn Код:
new Float:RandomSpawns[][] =
{
{1249.7258, -2047.9263, 59.9209, 90.2055}, //KingHouse
{1241.2084, -2057.6521, 60.0190, 94.9352},
{1241.0105, -2052.6873, 59.9975, 2.8144}
};
public RP_SpawnGift(playerid)
{
new Random = random(sizeof(RandomSpawns));
CreateObject(giftbox,RandomSpawns[Random][1],RandomSpawns[Random][2],RandomSpawns[Random][3],RandomSpawns[Random][4],0,0,0);
}
How do I tell players know where it spawned?
Like if it spawned at KingHouse it will send all players message "It spawned at the KingsHouse"