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

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...