need little example plz reply
#1

Quote:

new locations[][4] =
{
{55,66,77},
{1,1,1}
};
new Map[][] =
{
"Ship_Alert",
"Police_HQ",
"Jefferson_Motel"
};
forward BeginVote();
public BeginVote()
{
SendClientMessageToAll(COLOR_RED,"Voting Ends in 15 seconds. Cast your Votes");
SetTimer("endvote",15000,0);
ActiveVote = true;
new info[150];
for (new i = 0;i<sizeof(locations);i++)
{
if (i == 0) format(info,sizeof(info),"%s\n",Map[i]);
if (i == sizeof(locations)-1) format(info,sizeof(info),"%s%s",info,Map[i]);
if (i != sizeof(locations) && i != 0) format(info,sizeof(info),"%s\n",info,Map[i]);
}
for (new i = 0;i<MAX_PLAYERS; i++)
{
CanVote[i] = 1;
ShowPlayerDialog(i,500,DIALOG_STYLE_LIST,"Vote for Map",info,"Vote","Vote");
}
return 1;
}

how i ad this spawn in the locations

Quote:

new Float:RandomSpawnstdm[][4] =
{
{-1443.5890,489.6125,11.1953,279.7831},
{-1444.3029,512.8528,11.1953,255.2802},
{-1437.3507,503.6928,11.1953,267.2914},
{-1419.4233,490.9476,11.1953,356.1745}
};
new Float:RandomSpawnstdm1[][4] =
{
{-690.3361,936.5358,13.6328,179.9712},
{-676.6542,929.8027,12.1328,132.9942},
{-696.3448,967.7148,12.2941,139.2375},
{-692.5078,927.9092,13.6293,168.0644}
};
new Float:RandomSpawnstdm2[][4] =
{
{247.8709,142.9860,1003.0234,3.7601},
{230.5594,141.2424,1003.0234,356.2400},
{238.4645,146.8251,1003.0234,356.5533},
{246.2650,153.3921,1003.0234,356.5533},
{237.6065,158.6982,1003.0234,356.5533}
};
new Float:RandomSpawnstdm3[][4] =
{
{300.7668,171.3629,1007.1719,8.1467},
{290.6314,170.0125,1007.1794,4.0734},
{300.2852,178.1812,1007.1719,89.9275},
{281.4109,171.6593,1007.1719,23.9047},
{300.1963,184.2106,1007.1719,93.1520}
};

Reply
#2

oh i found it
Quote:

new Float:SomethingRandom[][4] =
{
{-2796.9854, 1224.8180, 20.5429, 192.0335, "Spawn 1"},
{-2454.2170, 503.8759, 30.0790, 267.2932,"Spawn 2"},
{-2669.7322, -6.0874, 6.1328, 89.8853,"Spawn 3"}
};

plz delete this thread admins
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)