Skins REP +
#1

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

Reply
#2

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);
        }
Reply
#3

eRRORS 22 i CANT FIX ALL
Reply
#4

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);
        }
Reply
#5

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;
}
Reply
#6

Now it dont show the skins in the menu if you randomly press it it works
Reply
#7

You have other code interfering then. The code I posted is straight from the Everystuff script and it works flawlessly
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)