Random Spawn message - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Random Spawn message (
/showthread.php?tid=150778)
Random Spawn message -
Bomber - 27.05.2010
pawn Код:
new Float:RandomPlayerSpawns[][] = {
{2172.3452,1707.4695,11.0469},// LV
{-2355.0981,-1663.4415,484.2658},//CHILLIAD
{2470.2827,-1703.6256,714.1284},//SKC
{1523.7820,-1359.0674,330.0499},//BASEJUMP
{-2626.2200,1347.5951,7.1511},//SF
{-486.9671,2575.7222,53.8691},//TRUCKSTOP
{-1265.5774,26.0086,14.1484},//SFAIR
{-1993.4088,242.6022,35.1719}//WANG
};
How can i do that if he/she spawns in LV (LV random spawn) then it sends message " You spawned in LV " ?
Re: Random Spawn message -
TruServe - 27.05.2010
Probabbly using OnPlayerSpawn and if(PlayerToPoint) you could work somthing up.
Re: Random Spawn message -
Bomber - 27.05.2010
I mean something like that:
pawn Код:
new Float:RandomPlayerSpawns[][] = {
{2172.3452,1707.4695,11.0469}, SendClientMessage(playerid, COLOR_GREEN, "You spawned in LV");
{-2355.0981,-1663.4415,484.2658},SendClientMessage(playerid, COLOR_GREEN, "You spawned on top mount chilliad.");
{2470.2827,-1703.6256,714.1284},//SKC // SO ON.
{1523.7820,-1359.0674,330.0499},//BASEJUMP
{-2626.2200,1347.5951,7.1511},//SF
{-486.9671,2575.7222,53.8691},//TRUCKSTOP
{-1265.5774,26.0086,14.1484},//SFAIR
{-1993.4088,242.6022,35.1719}//WANG
};
Re: Random Spawn message -
[XST]O_x - 27.05.2010
pawn Код:
new rand = random(7);
if (rand == 0){
SetPlayerPos(playerid, x,y,z);
SendClientMessage(playerid,color,"message");}
else if (rand == 1){
SetPlayerPos(playerid, x,y,z);
SendClientMessage(playerid,color,"message");}
else if (rand == 2){
SetPlayerPos(playerid, x,y,z);
SendClientMessage(playerid,color,"message");}
else if (rand == 3){
SetPlayerPos(playerid, x,y,z);
SendClientMessage(playerid,color,"message");}
else if (rand == 4){
SetPlayerPos(playerid, x,y,z);
SendClientMessage(playerid,color,"message");}
else if (rand == 5){
SetPlayerPos(playerid, x,y,z);
SendClientMessage(playerid,color,"message");}
else if (rand == 6){
SetPlayerPos(playerid, x,y,z);
SendClientMessage(playerid,color,"message");}
else if (rand == 7){
SetPlayerPos(playerid, x,y,z);
SendClientMessage(playerid,color,"message");}
Re: Random Spawn message -
Jefff - 27.05.2010
Or best, something like that
http://forum.sa-mp.com/index.php?topic=172094.0