#1

Hey guys im scripting a GM, but when i should chosee skin i only see left and right arrow and spawn...no skins avaible to chose..only can spawn and get skin 0..

CODE:
PHP код:
public OnGameModeInit()
{
    
SetGameModeText("Wum Mode V.0");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    
AddPlayerClass(451958.37831343.157215.3746269.1425000000);
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;

Reply
#2

Код:
SetPlayerPos(playerid, 1958, 1343, 15.35);
SetPlayerCameraPos(playerid, 1961, 1346, 17.35);
SetPlayerCameraLookAt(playerid, 1958, 1343, 15.35);
Your camera has to a little way away from your player. Try that.
Reply
#3

For each " AddPlayerClass " , you must add a " case " statement for each of the AddPlayerClass functions under OnPlayerRequestClass:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
        case 0: // this is the first AddPlayerClass
        {
            // setplayerpos
            // setplayercamerapos
            // setplayercameralookat
            // other stuff
        }
        case 1: // this is the second AddPlayerClass
        {
            // setplayerpos
            // setplayercamerapos
            // setplayercameralookat
            // other stuff
        }
    }
    return 1;
}
The more " AddPlayerClass " you use, the more " case " statements you use.
Reply
#4

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
For each " AddPlayerClass " , you must add a " case " statement for each of the AddPlayerClass functions under OnPlayerRequestClass:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
        case 0: // this is the first AddPlayerClass
        {
            // setplayerpos
            // setplayercamerapos
            // setplayercameralookat
            // other stuff
        }
        case 1: // this is the second AddPlayerClass
        {
            // setplayerpos
            // setplayercamerapos
            // setplayercameralookat
            // other stuff
        }
    }
    return 1;
}
The more " AddPlayerClass " you use, the more " case " statements you use.
where u learned that? LOL
its fake!
u dont need that at all!
just try to put the camera a bit far away or add more skins...
Reply
#5

True " u dont need that at all! " , but some people (like me) use my method if you want certain skins to show different positions/cameras.

Your (and wumpy's) method only shows only for one camera and position.
Reply
#6

Quote:
Originally Posted by Censure
Посмотреть сообщение
Код:
SetPlayerPos(playerid, 1958, 1343, 15.35);
SetPlayerCameraPos(playerid, 1961, 1346, 17.35);
SetPlayerCameraLookAt(playerid, 1958, 1343, 15.35);
Your camera has to a little way away from your player. Try that.
Thanks dude
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)