pawn Код:
new year, month,day;
getdate(year, month, day);
SafeResetPlayerWeapons(playa);
WantedPoints[playa] = 0;
PlayerInfo[playa][pJailed] = 2;
PlayerInfo[playa][pJailTime] = money*30;
SetPlayerInterior(playa, 0);
SetPlayerPos(playa, 1043.7401,1012.8881,55.3047);
Could anybody tell me how to make it take a random position out of 2 positions or 3 ?
Код:
new randspawm=random(5);
switch(randspawn)
{
case 0:SetPlayerPos(playerid, X1, Y1, Z1); //YOU NEED TO PUT CORDINATES
case 1:SetPlayerPos(playerid, X2, Y2, Z2);//YOU NEED TO PUT CORDINATES
case 2:SetPlayerPos(playerid, X3, Y3, Z3);//YOU NEED TO PUT CORDINATES
case 3:SetPlayerPos(playerid, X4, Y4, Z4);//YOU NEED TO PUT CORDINATES
case 4:SetPlayerPos(playerid, X5, Y5, Z5);//YOU NEED TO PUT CORDINATES
case 5:SetPlayerPos(playerid, X6, Y6, Z6);//YOU NEED TO PUT CORDINATES
case 6:SetPlayerPos(playerid, X7, Y7, Z7);//YOU NEED TO PUT CORDINATES
}