[POMOC] Promena Spawna

Započeo DjokoÅ¡, Decembar 06, 2012, 18:57:07 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: ST(Street Stories)
Detaljan opis problema: Ocu da promenim spawn,znam swe kordinate /save sam :D i udjem u skripti i kucam public SetPlayerSpawn,tamo mi izadje i ja promenim kordinate udjem na srw i opet se spawnam tamo de sam i pre.
Deo skripte:/
Neke slike/video za lakse dobijanje pomoci(neobavezno): /
prst prst u cupi,prst prst u anus

public OnPlayerSpawn:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Poruke);
TextDrawShowForPlayer(playerid, ServerPoruke);
TextDrawShowForPlayer(playerid, Clock);
TextDrawShowForPlayer(playerid, Date);

gettime(sati, minuta);
SetPlayerTime(playerid,sati,minuta);

InitLockDoors(playerid);
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam];
AntiDeAMX();
if(gPlayerAnimLibsPreloaded[playerid] == 0)
{
gPlayerAnimLibsPreloaded[playerid] = 1;
}
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
if(gPlayerLogged[playerid] == 0)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "** Ovaj server zahteva logiranje pre spawna (Kicked) **");
        KickPlayer[playerid] = 1;
}
if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
{
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Nisi dobar lider,sad si civil !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(gTeam[playerid] == 5)
{
    if(PlayerInfo[playerid][pMember] < 1)
    {
        MedicBill[playerid] = 0;
        new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Nisi clan familije, sad si civil !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
            SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 10)
{
    if(PlayerInfo[playerid][pMember] != 8)
    {
        MedicBill[playerid] = 0;
        new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Nisi clan ove Agencije, sad si civil !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
            SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3)
{
    MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste prihvaceni za mjesto Oficera / FBI / zastitara, sad si civil !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(gTeam[playerid] == 3)

I dole ima jos a public SetPlayerSpawn:
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
    SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
    if(PlayerInfo[playerid][pTut] == 0)
    {
    TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerPos(playerid, 1642.4204,-2330.9292,13.5469);
SetPlayerFacingAngle(playerid, 280);
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ClearChatbox(playerid, 10);
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
SendClientMessage(playerid, COLOR_GREY, "Dobrodosli! Sada ce vam biti postavljena neka osnovna pitanja.");
SendClientMessage(playerid, COLOR_YELLOW, "1. Da li ste Zensko ili Musko? (ukucajte u chatu sta ste)");
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
ClearChatbox(playerid, 2);
return 1;
    }

:D to je to :D i ima jos dole.
prst prst u cupi,prst prst u anus

Ovaj deo public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
    SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
    if(PlayerInfo[playerid][pTut] == 0)
    {
    TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
[size=10pt]SetPlayerPos(playerid, 1642.4204,-2330.9292,13.5469)[/size]
ovu liniju SetPlayerPos, tu zamenis koordinate
Poslednja Izmena: Decembar 06, 2012, 20:09:21 POSLE PODNE od Blaeks