Can Not See The Characters in Spawn Selecetion
#1

Hi , i had this :

AddPlayerClass(285,-379.6754,911.4002,9.4913,81.5043,0,0,0,0,0,0);//Team3///

and this Under public SetupPlayerForClassSelection(playerid):

pawn Код:
public SetupPlayerForClassSelection(playerid)
{
   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;
}
but My Problem is i can't see the Swat Man in spawn Selection :


If Someone have any Idea please Help me.
Reply
#2

Please Guys i sayed Any Any idea.
Reply
#3

Isn't it supposed to be OnPlayerRequestClass..?
Reply
#4

If no one managed to help you by tomorrow, then I will help then.
Sorry, but I got to go right now.
Reply
#5

Quote:
Originally Posted by ServerScripter
Посмотреть сообщение
Hi , i had this :

AddPlayerClass(285,-379.6754,911.4002,9.4913,81.5043,0,0,0,0,0,0);//Team3///

and this Under public SetupPlayerForClassSelection(playerid):

pawn Код:
public SetupPlayerForClassSelection(playerid)
{
   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;
}
but My Problem is i can't see the Swat Man in spawn Selection :



If Someone have any Idea please Help me.
I think the problem is that

It is not suppose to be under SetupPlayerForClassSelection

Copy and Paste it to under PlayerRequestClass

So this is what it is suppose to look like
pawn Код:
public OnPlayerRequestClass(playerid)
{
   AddPlayerClass(285,-379.6754,911.4002,9.4913,81.5043,0,0,0,0,0,0);//Team3///
   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;
}
Reply
#6

Not Working....
Reply
#7

What is your OnPlayerRequestClass returning? Or could you show us your OnPlayerRequestClass?
Reply
#8

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
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;
}
Reply
#9

Under OnPlayerRequestClass add this

SetupPlayerForClassSelection(playerid);

So it reads from SetupPlayerForClassSelection and does the following at SetupPlayerForClassSelection
Reply
#10

Quote:
Originally Posted by PhoenixB
Посмотреть сообщение
Under OnPlayerRequestClass add this

SetupPlayerForClassSelection(playerid);

So it reads from SetupPlayerForClassSelection and does the following at SetupPlayerForClassSelection
I new I was forgetting something just can't remember

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
   SetupPlayerForClassSelection(playerid);
   AddPlayerClass(285,-379.6754,911.4002,9.4913,81.5043,0,0,0,0,0,0);//Team3///
   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;
}
This should work... It has too, it worked for me when I tested it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)