Random spawn
#3

Quote:
Originally Posted by Clad
Посмотреть сообщение
PHP код:
public OnPlayerSpawn(playerid)
{
    new 
Random random(sizeof(RandomSpawns));
    
SetPlayerPos(playeridRandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    
SetPlayerFacingAngle(playeridRandomSpawns[Random][3]);
    return 
1;

Now create the client messages
You dont understand.

If the object spawns at these coords for example. It will SendClientMessageToAll(COLOR_RED, "It spawned at Kings House!");
pawn Код:
{1249.7258, -2047.9263, 59.9209, 90.2055}, //KingHouse
Reply


Messages In This Thread
Random spawn - by Pawnie - 28.02.2014, 19:36
Re: Random spawn - by Clad - 28.02.2014, 19:42
Re: Random spawn - by Pawnie - 28.02.2014, 19:43
Re: Random spawn - by Clad - 28.02.2014, 19:46
Re: Random spawn - by Pawnie - 28.02.2014, 19:47
Re: Random spawn - by iPrivate - 28.02.2014, 20:13
Re: Random spawn - by Pawnie - 28.02.2014, 20:16

Forum Jump:


Users browsing this thread: 1 Guest(s)