How to have more than 1 skin view -
Knocc_Out - 26.01.2011
Hello guys I'm learning how to script, a week ago I started. I thought that it was simple, but it's really hard. Anyway, I want to know how I can have more than 1 skin view. You know what I mean? Not just this but more
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
someone told me about case or something, but he didn't explain it well please help me.
Thanks
Re: How to have more than 1 skin view -
DRIFT_HUNTER - 26.01.2011
You have
pawn Код:
public OnPlayerRequestClass(playerid, classid)
And your code is under it so you can see two parameters "playerid" and "classid"
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
}
else if(classid == 1)
{
//Change player poss,camera pos and camera look at
}
return 1;
}
I didnt use these and im not sure is the classid start from 0 or 1
And i think class id is ordinal number you add "AddPlayerClass"
pawn Код:
AddPlayerClass(0,-386.8549,1523.7404,76.6000,4.0045,0,0,0,0,0,0); // Class id 0
AddPlayerClass(114,-386.8549,1523.7404,76.6000,4.0045,0,0,0,0,0,0); // Class id 1
AddPlayerClass(114,-386.8549,1523.7404,76.6000,4.0045,0,0,0,0,0,0); // Class id 2
//and so on...
Re: How to have more than 1 skin view -
Knocc_Out - 27.01.2011
Ok thanks mate, I'll test it right now.
Re: How to have more than 1 skin view -
Knocc_Out - 27.01.2011
Sorry for the DP. Thanks man it works!
Re: How to have more than 1 skin view -
Sasino97 - 27.01.2011
Quote:
I didnt use these and im not sure is the classid start from 0 or 1
|
It starts from 0