Will this small code work?
#1

Код:
public OnPlayerSpawn(playerid)
{
	new pname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pname, sizeof(pname));
	if(gTeam[playerid] == TEAM_WS) SetSpawnInfo(playerid, TEAM_WS, 271, 1667.8909, 1405.5618, 10.7801, 0.0, 448, 300, 355, 300, 358, 300); SpawnPlayer(playerid);
	if(gTeam[playerid] == TEAM_A11) SetSpawnInfo(playerid, TEAM_A11, 270, 1667.8909, 1405.5618, 10.7801, 0.0, 448, 300, 355, 300, 358, 300); SpawnPlayer(playerid);
	if(gTeam[playerid] == TEAM_EC) SetSpawnInfo(playerid, TEAM_EC, 269, 689.1548,-1275.1447,13.5590, 0.0, 448, 300, 355, 300, 358, 300); SpawnPlayer(playerid);
	return 1;
}
its supposed to well assign it that if ur in this clan ull always spawn in the clans hq (coordinates not set yet)
Reply
#2

yeah

pawn Код:
public OnPlayerSpawn(playerid)
{
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    if(gTeam[playerid] == TEAM_WS)
        {
                SetPlayerPos(playerid, 1667.8909, 1405.5618, 10.7801);
        }
    if(gTeam[playerid] == TEAM_A11)
        {
                SetPlayerPos(playerid, 1667.8909, 1405.5618, 10.7801);
        }
    if(gTeam[playerid] == TEAM_EC)
        {
                SetPlayerPos(playerid, 689.1548,-1275.1447,13.5590);
        }
    return 1;
}
something like that^^


EDIT:
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));

may not be needed if that spawn stuff is there only
Reply
#3

Instead of asking if it will work, why don't u go ahead and test? debug, and you will get it working.

Use the little snippet that wsfm wrote for u that should work just fine
Reply
#4

ty, i also have a prob where the class selection is near the lv escalutors (defualt) but i cant see the players
Reply
#5

Quote:
Originally Posted by Criss_Angel
Посмотреть сообщение
ty, i also have a prob where the class selection is near the lv escalutors (defualt) but i cant see the players
Go to the filterscript section and search for class maker works 100% and is a really great script. i will edit this when i find one

EDIT: http://forum.sa-mp.com/showthread.ph...ght=ClassMaker Credz to Ryder for making it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)