2 things i need help in:
#1

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
Reply
#2

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...
Reply
#3

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!
Reply
#4

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...
Reply
#5

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

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...
Reply
#7

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
Reply
#8

Show your OnPlayerRequestClass(playerid, classid) code plz.

Peace...
Reply
#9

You probably changed camera coordinates under OnPlayerRequestClass.
Reply
#10

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)