2 things i need help in: -
omer5198 - 07.02.2011
1) how can i make a skin selection in the spawn menu (F4 and at the start)
2) how can i make commands like /pm /ann /say? because you need the text[] from the onplayertext but you need the cmdtext[] from the onplayercommandtext... how can i combine them?
b.t.w : sorry for my bad english
Re: 2 things i need help in: -
Stigg - 07.02.2011
Quote:
Originally Posted by omer5198
1) how can i make a skin selection in the spawn menu (F4 and at the start)
2) how can i make commands like /pm /ann /say? because you need the text[] from the onplayertext but you need the cmdtext[] from the onplayercommandtext... how can i combine them?
b.t.w : sorry for my bad english
|
For all skins use:
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);
}
}
For the commands you need use a admin fs, plenty on here.
Peace...
Re: 2 things i need help in: -
omer5198 - 07.02.2011
Quote:
Originally Posted by Stigg
For all skins use:
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);
}
}
For the commands you need use a admin fs, plenty on here.
Peace...
|
thx but i got 2 things to tell you:
1) perheps i didnt understand so can you plz explin(break) this code?
2)i want that they can move with the arrows and see few skins... not write anything... just clicking...
thx!
Re: 2 things i need help in: -
Stigg - 07.02.2011
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;
}
Under gamemode edit, this this will allow you to scroll through all skins using the arrow buttons.
Peace...
Re: 2 things i need help in: -
omer5198 - 07.02.2011
Quote:
Originally Posted by Stigg
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;
}
Under gamemode edit, this this will allow you to scroll through all skins using the arrow buttons.
Peace...
|
Quote:
error 017: undefined symbol "IsValidSkin"
|
plz help
Re: 2 things i need help in: -
Stigg - 07.02.2011
Quote:
Originally Posted by omer5198
plz help
|
Add this to the bottom of your gamemode.
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;
}
Problem solved.
Peace...
Re: 2 things i need help in: -
omer5198 - 07.02.2011
Quote:
Originally Posted by Stigg
Add this to the bottom of your gamemode.
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;
}
Problem solved.
Peace...
|
thx but i can't see the characters that i am choosing... when i cllick left/right it doesn't show anything... it does change the player though because when you click on the spawn button it spawns you with another character
Re: 2 things i need help in: -
Stigg - 07.02.2011
Show your OnPlayerRequestClass(playerid, classid) code plz.
Peace...
Re: 2 things i need help in: -
Ironboy500[TW] - 07.02.2011
You probably changed camera coordinates under OnPlayerRequestClass.
Re: 2 things i need help in: -
omer5198 - 07.02.2011
Quote:
Originally Posted by Stigg
Show your OnPlayerRequestClass(playerid, classid) code plz.
Peace...
|
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);