SA-MP Forums Archive
Can Not See The Characters in Spawn Selecetion - 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: Can Not See The Characters in Spawn Selecetion (/showthread.php?tid=280196)



Can Not See The Characters in Spawn Selecetion - ServerScripter - 30.08.2011

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.


Re: Can Not See The Characters in Spawn Selecetion - ServerScripter - 30.08.2011

Please Guys i sayed Any Any idea.


Re: Can Not See The Characters in Spawn Selecetion - Snipa - 30.08.2011

Isn't it supposed to be OnPlayerRequestClass..?


Re: Can Not See The Characters in Spawn Selecetion - Improvement™ - 30.08.2011

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


Re: Can Not See The Characters in Spawn Selecetion - Swyft™ - 30.08.2011

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;
}



Re: Can Not See The Characters in Spawn Selecetion - ServerScripter - 30.08.2011

Not Working....


Re: Can Not See The Characters in Spawn Selecetion - Coffeemonster - 30.08.2011

What is your OnPlayerRequestClass returning? Or could you show us your OnPlayerRequestClass?


Re: Can Not See The Characters in Spawn Selecetion - ServerScripter - 30.08.2011

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;
}



Re: Can Not See The Characters in Spawn Selecetion - PhoenixB - 30.08.2011

Under OnPlayerRequestClass add this

SetupPlayerForClassSelection(playerid);

So it reads from SetupPlayerForClassSelection and does the following at SetupPlayerForClassSelection


Re: Can Not See The Characters in Spawn Selecetion - Swyft™ - 30.08.2011

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.