SA-MP Forums Archive
Skinnns giving rep - 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)
+--- Thread: Skinnns giving rep (/showthread.php?tid=479770)



Skinnns giving rep - iBots - 07.12.2013

Can someone tell me how to make classes for rp and u choose and spawn as civilian inside the binco.


Re: Skinnns giving rep - Jankingston - 07.12.2013

here : https://sampforum.blast.hk/showthread.php?tid=340754

it'll help


Re: Skinnns giving rep - Sawalha - 07.12.2013

pawn Код:
#define TEAM_CAV      0 // at the top of script
           
// at OnGameModeInt
   AddPlayerClass((skin,207.8985,-107.1486,1005, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo) // This float for binco

 // you can edit these info, they are the info of player's spawn..


// now blow the script

stock SetPlayerTeamFromClass(playerid, classid) // making a stock to make class selection
{
          switch(classid) // here we are gonna set the classes as cases each one by one
          {
               case 0:
               {
                     SetPlayerTeam(playerid, TEAM_CAV);
                     SetPlayerColor(playerid, -1); // as some examples
                     SetPlayerInterior(playerid, 15);
               }
         }
}
if you want to get a spawn pos & interior id for some interior, go inside some of them , and do /save and /interior.
more info here https://sampwiki.blast.hk/wiki/InteriorIDs

P.S the ways you are may make the selection with it Dialog or preview one.