Jump to content

[REZOLVAT] Problema spawnare


Gabriel03
 Share

Recommended Posts

Stiti cumva dc la comanda /spawn ma spawneaza la pos 0 0 0?

Dupa ce s-a loghat playerul se seteaza asta:

SetSpawnInfo(playerid, 3, PlayerInfo[playerid][pModel], 2237.1157, 1285.7301, 10.8203, 90.2776, -1, -1, -1, -1, -1, -1);

Nu functioneaza nicaieri daca nu ii pun inainte SetSpawnInfo.

CMD:spawn(playerid, params[]) {
    if(PlayerInfo[playerid][pAdmin] < 1) return LangDirect(playerid, NOT_ALLOWED);
    new id;
    if(sscanf(params, "u", id)) return SCM(playerid, -1, "{944741}USAGE: {FFFFFF}/spawn <player id/name>");
    if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return LangDirect(playerid, INVALID_USER);
    if(PlayerInfo[id][pAdmin] > PlayerInfo[playerid][pAdmin]) return LangDirect(playerid, HIGHER_ADMIN);
    SendAdminMessage(LangMessage(playerid, SPAWN_PLAYER, GetName(id)));
    SCM(id, -1, LangMessage(id, GOT_SPAWNED, GetName(playerid), playerid));
    SpawnPlayer(id);
    return 1;
}

Merge numai la OnPlayerRequestClass

Web Developer

petregabriel.ro

 

 

Link to comment
Share on other sites

  • Hall of Flame🔥
4 minutes ago, Gabriel03 said:

Stiu dar daca pui SetSpawnInfo ar trebuii sa ramana toata sesiunea, nu?

Vezi poate ai ceva la OnPlayerSpawn ce da override la setspawninfo

ezgif-com-gif-maker-1-00000.png

Not So Zen SRL

Link to comment
Share on other sites

  • Hall of Flame🔥
24 minutes ago, Gabriel03 said:

Nu este nimic. O sa vad eu ce sa ii fac.. Poate ii pun cu setplayerpos.

Sau poate pui niste interogari la onplayerspawn si daca nu e membru de factiune, sau daca e etc. sa spawneze altundeva.

ezgif-com-gif-maker-1-00000.png

Not So Zen SRL

Link to comment
Share on other sites

1 minute ago, Alexandru1337 said:

Sau poate pui niste interogari la onplayerspawn si daca nu e membru de factiune, sau daca e etc. sa spawneze altundeva.

Asta o sa fac mai tarziu ca e gm de la 0 si momentan lucrez la alte sisteme.

Web Developer

petregabriel.ro

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...