Need help for one thing .. -
dundolina - 20.10.2011
I need help to change the skins in the beginning .. On my server, as in many others, when you go out and menu skins from there you can select what you are. I want to know where they are located, to put all the skins there. Thanks in advance!
Re: Need help for one thing .. -
Kostas' - 20.10.2011
Do you mean to change the skins before you spawn? If yes, OnGameModeInit()
add the skins you want. For example I want to use only 9 skins
pawn Код:
public OnGameModeInit()
{
AddPlayerClass(47,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(48,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(49,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(50,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(51,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(52,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(53,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(54,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(55,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
//More
Re: Need help for one thing .. -
Stigg - 20.10.2011
Try using this for all skins:
pawn Код:
public OnGameModeInit()
{
for(new i = 0; i < 299; i++)
{
if(IsValidSkin(i))
{
AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
}
}
return 1;
}
With this stock:
pawn Код:
stock IsValidSkin(SkinID)
{
if(0 < SkinID < 300)
{
switch(SkinID)
{
case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0;
}
return 1;
}
return 0;
}
Should have the desired effect.
Re: Need help for one thing .. -
dundolina - 20.10.2011
And how can I put my name, for example, says "Ballas" and leaving only the skins of ballas?
Re: Need help for one thing .. -
Mr_Scripter - 20.10.2011
pawn Код:
#define BALLAS 1 // On Top of script
new gTeam[MAX_PLAYERS]; //on top of script this one too
forward SetPlayerTeamFromClass(playerid, classid);
public SetPlayerTeamFromClass(playerid, classid)
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
if(classid == 0)
{
gTeam[playerid] = Ballas;
GameTextForPlayer(playerid,"~w~Ballas",3000,5);
SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779);
SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909);
SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
SetPlayerFacingAngle(playerid,122.4500);
SetPlayerColor(playerid,COLOR_BRIGHTRED);
return 1;
}