[AJUDA] /spawn bugado
#6

Ta a mesma coisa

Sу que agora ta spawnando em cima do veiculo D:
Nгo sei qual foi o objetivo de spawnar na mesma coordenadas que ele estб mais continua o mesmo problema da camera tudo, sу ta spawnando na coordenada que ele estava anteriormente, ou seja, no mesmo lugar '-'

Nгo sei se eu fiz correto olha.
pawn Код:
if(strcmp(cmd, "/spawn", true) == 0)
{

            if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COR_CINZA, "Vocк nгo estб conetado!");
            if(LevelInfo[playerid][Admin] < 1) return SendClientMessage(playerid, COR_MARROMCLARO, "[ERRO] Vocк nгo tem permissгo para executar este comando.");
            if(AdminTrabalhando[playerid] < 1) return SendClientMessage(playerid, COR_MARROMCLARO, "[AVISO] Vocк nгo estб trabalhando USE /trampar");

    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    new plid;
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) {
        SendClientMessage(playerid, COR_CINZA, "[AJUDA] Digite: /spawn [id]");
        return 1;
    }
    plid = strval(tmp);
    if(IsPlayerConnected(plid)) {
        SpawnPlayer(plid);
        if(IsPlayerInAnyVehicle(plid))
{
    new Float:Pos[3];
    GetVehiclePos(GetPlayerVehicleID(playerid), Pos[0], Pos[1], Pos[2]);
    SetPlayerPos(plid, Pos[0], Pos[1], Pos[2]);
}
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, NomeDado, sizeof(NomeDado));
        GetPlayerName(playerid, NomeDado1, sizeof(NomeDado1));
        GetPlayerName(plid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{8C8080}[INFO ADMIN] O admin %s (%d) deu spawn em %s (%d)!", aname,playerid,pname,plid);
        MSGAdmin(-1, string);
                format(string, sizeof(string), "{FBFF00}[INFO ADMIN] O admin {FF0000}%s (%d) {FBFF00}deu spawn em %s (%d)!", aname,playerid,pname,plid);
        format(string,sizeof(string),"[INFO] Vocк foi spawnado pelo admin %s.",NomeDado1);
        SendClientMessage(playerid, COLOR_YELLOW,string);
        format(string,sizeof(string),"[INFO] Vocк deu spawn no %s",NomeDado);
        SendClientMessage(playerid, COLOR_YELLOW,string);
        return 1;
    }
    else {
        SendClientMessage(playerid, -1, "ID invбlido");
        return 1;
    }
}
@Don_Speed da na mesma


@CORRIGINDO

Sу quando ele estб dentro do veiculo que ele spawna em cima do veiculo, quando ta fora ele spawna certo
Reply


Messages In This Thread
[AJUDA] /spawn bugado - by Chis - 24.01.2012, 20:32
Re: [AJUDA] /spawn bugado - by Bolinha_ProJogos - 24.01.2012, 20:34
Respuesta: [AJUDA] /spawn bugado - by Chis - 24.01.2012, 20:38
Re: [AJUDA] /spawn bugado - by Don_Speed - 24.01.2012, 20:50
Re: [AJUDA] /spawn bugado - by Shadoww5 - 24.01.2012, 21:02
Respuesta: [AJUDA] /spawn bugado - by Chis - 24.01.2012, 21:12
Re: [AJUDA] /spawn bugado - by Lucas_Alemao - 24.01.2012, 21:15
Respuesta: [AJUDA] /spawn bugado - by Chis - 24.01.2012, 21:26
Re: Respuesta: [AJUDA] /spawn bugado - by Shadoww5 - 24.01.2012, 22:20
Re: [AJUDA] /spawn bugado - by Don_Speed - 25.01.2012, 00:16

Forum Jump:


Users browsing this thread: 1 Guest(s)