SA-MP Forums Archive
[Help]Character selection - 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: [Help]Character selection (/showthread.php?tid=284117)



[Help]Character selection - [Headless] - 18.09.2011

The title says it all.I'm having trouble creating a character selection.There is something wrong with the walking and running part..It doesn't look okay.Sorry for my bad english


Re: [Help]Character selection - Kingunit - 18.09.2011

What you think we can do without some code?


Re: [Help]Character selection - [Headless] - 18.09.2011

They walk/run like retard..any idea?..

public OnGameModeInit()
{
SetGameModeText("");
AddPlayerClass(0,1544.7887,-1675.4630,13.5591,88.8707,38,999,0,0,0,0);
AddPlayerClass(165,1544.7887,-1675.4630,13.5591,88.8707,38,999,0,0,0,0);
AddPlayerClass(166,1544.7887,-1675.4630,13.5591,88.8707,38,999,0,0,0,0);
AddPlayerClass(239,1544.7887,-1675.4630,13.5591,88.8707,38,999,0,0,0,0);
AddPlayerClass(194,1544.7887,-1675.4630,13.5591,88.8707,38,999,0,0,0,0);
AddPlayerClass(193,1544.7887,-1675.4630,13.5591,88.8707,38,999,0,0,0,0);
AddPlayerClass(192,1544.7887,-1675.4630,13.5591,88.8707,38,999,0,0,0,0);
AddPlayerClass(191,1544.7887,-1675.4630,13.5591,88.8707,38,999,0,0,0,0);
AddPlayerClass(190,1544.7887,-1675.4630,13.5591,88.8707,38,999,0,0,0,0);
AddPlayerClass(195,1544.7887,-1675.4630,13.5591,88.8707,38,999,0,0,0,0);
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1544.7887,-1675.4630,13.5591);
SetPlayerFacingAngle(playerid,90.0);
SetPlayerCameraPos(playerid, 1541.5293,-1675.4012,13.5527);
SetPlayerCameraLookAt(playerid, 1544.7887,-1675.4630,13.5591);
return 1;
}


Re: [Help]Character selection - MP2 - 18.09.2011

Please use [ pawn ] tags next time.

Why is the gamemodetext set to an empty string..?

What do you mean running and walking? You don't apply any animations.


Re: [Help]Character selection - cessil - 18.09.2011

I think you mean you're missing
UsePlayerPedAnims();
under OnGameModeInit


Re: [Help]Character selection - [Headless] - 18.09.2011

Quote:
Originally Posted by MP2
Посмотреть сообщение
Please use [ pawn ] tags next time.

Why is the gamemodetext set to an empty string..?

What do you mean running and walking? You don't apply any animations.
I removed it when i pasted it here


Re: [Help]Character selection - [Headless] - 18.09.2011

Quote:
Originally Posted by cessil
Посмотреть сообщение
I think you mean you're missing
UsePlayerPedAnims();
under OnGameModeInit
When i read this...then i realised that im missing it..Thank you very much!