[POMOC] mafije

Započeo MosT_WanteD, Decembar 05, 2010, 21:51:16 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

kako da napravim da se neka banda spawna na odredenom mjestu eo vako je u skripti
radi se o penls modu
public OnPlayerRequestClass(playerid, classid)
{
   new string[128];
   /*
   if (gPlayerAccount[playerid] == 0)
   {
      GameTextForPlayer(playerid, "~w~Welcome.~n~In order to play you need to create an account, type ~n~~r~/regnick (password)~w~ to register", 20000, 3);
      SetPlayerCameraPos(playerid,1460.0, -1324.0, 287.2);
      SetPlayerCameraLookAt(playerid,1374.5, -1291.1, 239.0);
      return 1;
   }
   */
   PlayerInfo[playerid][pModel] = Peds[classid][0];
   //printf("pppm = %d classid == %d Peds[classid][0]= %d",PlayerInfo[playerid][pModel],classid,Peds[classid][0]);
   if(classid >= 260)
   {
      format(string, sizeof(string), "~b~SAPD~n~ ~r~Objective~w~: Retain Law");
      GameTextForPlayer(playerid,string,3500,6);
      DisablePlayerCheckpoint(playerid);
      gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
   }
   else if (classid >= 255 && classid <= 259)
   {
         format(string, sizeof(string), "~g~PARAMEDIC~n~~r~Objective~w~: Save Life");
         GameTextForPlayer(playerid,string,3500,6);
   }
   else if (classid >= 1 && classid <= 3)
   {
         format(string, sizeof(string), "~p~BALLAS~n~~r~Objective~w~: Chaos");
         GameTextForPlayer(playerid,string,3500,6);
   }
   else if (classid >= 4 && classid <= 6)
   {
         format(string, sizeof(string), "~p~GROVE~n~~r~Objective~w~: Chaos");
         GameTextForPlayer(playerid,string,3500,6);

   }
   else if (classid >= 7 && classid <= 9)
   {
         format(string, sizeof(string), "~p~VAGOS~n~~r~Objective~w~: Chaos");
         GameTextForPlayer(playerid,string,3500,6);
   }
   else if (classid >= 10 && classid <= 12)
   {
         format(string, sizeof(string), "~p~AZTECAS~n~~r~Objective~w~: Chaos");
         GameTextForPlayer(playerid,string,3500,6);
   }
   else if (classid >= 13 && classid <= 15)
   {
         format(string, sizeof(string), "~p~NANG~n~~r~Objective~w~: Chaos");
         GameTextForPlayer(playerid,string,3500,6);
   }
   else if (classid >= 16 && classid <= 21)
   {
         format(string, sizeof(string), "~p~MAFIA~n~~r~Objective~w~: Chaos");
         GameTextForPlayer(playerid,string,3500,6);
   }
   else if (classid >= 22 && classid <= 24)
   {
         format(string, sizeof(string), "~p~RUSSIAN MAFIA~n~~r~Objective~w~: Chaos");
         GameTextForPlayer(playerid,string,3500,6);
   }
   else if (classid >= 25 && classid <= 27)
   {
         format(string, sizeof(string), "~p~TRIADS~n~~r~Objective~w~: Chaos");
         GameTextForPlayer(playerid,string,3500,6);
   }
   else if (classid >= 28 && classid <= 30)
   {
         format(string, sizeof(string), "~p~BIKERS~n~~r~Objective~w~: Chaos");
         GameTextForPlayer(playerid,string,3500,6);
   }
   else
   {
      format(string, sizeof(string), "~g~CIVILIAN~n~~r~Objective~w~: Live Life");
      GameTextForPlayer(playerid,string,3500,6);
   }
   SetPlayerTeamFromClass(playerid,classid);
   SetupPlayerForClassSelection(playerid);
   return 1;
}
e kako sad da za ove bande ubacim da se porta svaka na mjestu na kojem zelim
LOL