Random Spawn message
#1

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 " ?
Reply
#2

Probabbly using OnPlayerSpawn and if(PlayerToPoint) you could work somthing up.
Reply
#3

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
};
Reply
#4

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");}
Reply
#5

Or best, something like that
http://forum.sa-mp.com/index.php?topic=172094.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)