28.06.2011, 18:22
Quote:
Well... i Made classed and everything , but when i got to Choose the Class i want ( Team ) , all i see is nothing and down ( Left - Right - Spawn ) , When i click Spwan i spawn with the Ballaz ( First class i made in the GM ) , but the problem that i don't see the skin before i press Spawn
|
PHP код:
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
Quote:
so i wanted to know how to fix this and how to change the back Ground while Choosing the Class
|
https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
Quote:
and how to put Words ( Text ) above the skin before i choose it
|
PHP код:
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);
if(classid == 1)
{
gTeam[playerid] = TEAM_GROVE;
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~g~GROOVE", 5000, 6);
}
else
{
gTeam[playerid] = TEAM_BALLA;
SetPlayerColor(playerid, TEAM_BALLA_COLOR);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~p~BALLAS", 5000, 6);
}
return 1;
}