Posts: 27
Threads: 13
Joined: Jan 2010
Reputation:
0
Hello I am creating a gamemode of hunger games and need a little tutorial on how to create rounds with time and random spawns.
I also need that when a player enters the sv when a round has already started spectating stay until Begin a new round
Please help me!
Posts: 21
Threads: 2
Joined: Nov 2013
Reputation:
0
So basicly you want a person to create the whole gamemode for you?
You can get most of this information if you search the SA-MP Wiki.
Posts: 27
Threads: 13
Joined: Jan 2010
Reputation:
0
Thanks voxel, im using the system of kitten before this post xd but i need random spawns and spec when a player enter to the server when a round started can you help me? (= i only want a little tutorial please
Posts: 27
Threads: 13
Joined: Jan 2010
Reputation:
0
public OnPlayerSpawn(playerid) * * * * * * * * * *// OnPlayerSpawn Callback
{
* * switch ( MapChange *) { * * * * * * * * * * * // you must have a case for the mapchange to get the list going
* * * * case 0: * * * * * * * * * * * * * * * * * // MapChange1 this is the part for MapChange = 0; Which basically starts of the first MapChangein the list
* * * * {
* * * * * * SetPlayerPos(playerid, X,Y,Z); * * * *// XYZ Co-rds of the first map
* * * * * * SetPlayerFacingAngle(playerid,0.0); * // Facing Angle of the first map
* * * * }
* * * * case 1: * * * * * * * * * * * * * * * * * // MapChange2 same settings on top
* * * * {
* * * * * * SetPlayerPos(playerid, X,Y,Z);
* * * * * * SetPlayerFacingAngle(playerid,0.0);
* * * * }
* * * * case 2: * * * * * * * * * * * * * * * * * // blah blah next MapChangestuff here
* * * * {
* * * * }
* * }
* * return 1;
}
How to create random spawns here?
Posts: 27
Threads: 13
Joined: Jan 2010
Reputation:
0
Setplayerpos(playerid,randomspawns); ?? Xd