View Full Version : why is my class/skin selection blank?

01/01/2012, 03:10 PM
Hi, i'm new to SAMP server programming.

I made a new blank pawno script that uses the default values.
Put it on my server.cfg gamemode and start my server

When i go into the game , the class/skin selection is blank and when i click left or right , it still remians blanks , when i click spawn , CJ is spawned .

How can i enable skin selection?


01/01/2012, 03:21 PM
Use this
public OnPlayerRequestClass(playerid, classid)
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1957.3783, 1342.1572, 15.0000);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
the default one has this problem where the camera is at the same place as the player which will result in the selection menu/class selection not show skins etc.

01/01/2012, 03:33 PM
Still cant use the left and right to browse through skins..
Is there a code to enable that?

01/01/2012, 03:35 PM
You have to add classes, use AddPlayerClass (http://wiki.sa-mp.com/wiki/AddPlayerClass).