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