Skins 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: Skins REP + (
/showthread.php?tid=375630)
Skins REP + -
Dare Devil..... - 07.09.2012
Can any one tell me how can I add the skins to the place when you login it show up 2 arrows and a spawn button I want there skins to be added
Re: Skins REP + -
Windrush - 07.09.2012
try mine
pawn Код:
SetPlayerClass(playerid, classid);
//--------------------------Selection Screen Colors-----------------------------
switch (classid)
{
//-------------------------------SF Worker
case 0:
{
//worker
TextDrawShowForPlayer(playerid, worker0);
TextDrawShowForPlayer(playerid, worker1);
//hide
TextDrawHideForPlayer(playerid, pimp0);
TextDrawHideForPlayer(playerid, pimp1);
TextDrawHideForPlayer(playerid, golfer0);
TextDrawHideForPlayer(playerid, golfer1);
TextDrawHideForPlayer(playerid, triad0);
TextDrawHideForPlayer(playerid, triad1);
TextDrawHideForPlayer(playerid, army0);
TextDrawHideForPlayer(playerid, army1);
TextDrawHideForPlayer(playerid, mechanic0);
TextDrawHideForPlayer(playerid, mechanic1);
TextDrawHideForPlayer(playerid, medic0);
TextDrawHideForPlayer(playerid, medic1);
TextDrawHideForPlayer(playerid, swat0);
TextDrawHideForPlayer(playerid, swat1);
TextDrawHideForPlayer(playerid, chicken0);
TextDrawHideForPlayer(playerid, chicken1);
TextDrawHideForPlayer(playerid, toreno0);
TextDrawHideForPlayer(playerid, toreno1);
TextDrawHideForPlayer(playerid, pilot0);
TextDrawHideForPlayer(playerid, pilot1);
TextDrawHideForPlayer(playerid, nang0);
TextDrawHideForPlayer(playerid, nang1);
GameTextForPlayer(playerid, "~r~SF WORKER", 2000, 5);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -2109.7576,184.2289,35.1503);
SetPlayerFacingAngle(playerid,160.3343);
SetPlayerCameraPos(playerid, -2108.96,175.01,36.31);
SetPlayerCameraLookAt(playerid, -2109.7576,184.2289,35.1503);
PlayerPlaySound(playerid,SOUND_MUSIC1,-2109.7576,184.2289,35.1503);
}
Re: Skins REP + -
Dare Devil..... - 07.09.2012
eRRORS 22 i CANT FIX ALL
Re: Skins REP + -
Sasoft - 07.09.2012
pawn Код:
SetPlayerClass(playerid, classid);
//--------------------------Selection Screen Colors-----------------------------
switch (classid)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -2109.7576,184.2289,35.1503);
SetPlayerFacingAngle(playerid,160.3343);
SetPlayerCameraPos(playerid, -2108.96,175.01,36.31);
SetPlayerCameraLookAt(playerid, -2109.7576,184.2289,35.1503);
}
Re: Skins REP + -
kaisersouse - 07.09.2012
In OnGameModeInit
Код:
for(new i = -1; i < 300; i++) if(IsSkinValid(i)) AddPlayerClass(i,1860.4724,-2261.4534,13.5469,0,0,0,0,0,0,0);
In OnPlayerRequestClass
Код:
format(string128,sizeof(string128),"~w~ID: %i",pskin[playerid]);
GameTextForPlayer(playerid,string128,2000,3);
IsSkinValid function:
Код:
stock IsSkinValid(skinid)
{
if (skinid < 0 || skinid > 299 || skinid==74) return false;
else return true;
}
Re: Skins REP + -
Dare Devil..... - 07.09.2012
Now it dont show the skins in the menu if you randomly press it it works
Re: Skins REP + -
kaisersouse - 07.09.2012
You have other code interfering then. The code I posted is straight from the Everystuff script and it works flawlessly