Problema con este cmd
#1

Bien intento hacer un comando para rcon pero tengo un problema, cuando hago /startabase elijo la base 1 pero no tele transporta alas posiciones a los teams que hago mal?

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/startbase", cmdtext, true, 10) == 0)
    {
    if (IsPlayerAdmin(playerid))        
    ShowPlayerDialog(playerid,14041,DIALOG_STYLE_LIST,"{FF0000}Inicia una Base ","\n{00c4fa}Base: {ff0000}1 ","Accept","Cancel");
        return 1;
    }
    return 0;
}
en

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid==14041) {
    if(response) {
    if(listitem==0) {                    
    if(gTeam[playerid] == TEAM_1)
    {
        SetPlayerPos(playerid,2471.39990234,-1705.00000000,13.19999981);
        SetPlayerSkin(playerid,199);
    }
    }
    else if(gTeam[playerid] == TEAM_2)
    {
        SetPlayerPos(playerid,2443.50000000,-1555.90002441,23.60000038);
        SetPlayerSkin(playerid,199);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problema con este cmd - by adrianxd - 28.07.2012, 19:16
Respuesta: Problema con este cmd - by CeKiT - 01.08.2012, 03:26
Respuesta: Problema con este cmd - by adrianxd - 01.08.2012, 03:55
Re: Problema con este cmd - by Daniel-92 - 01.08.2012, 04:16
Respuesta: Problema con este cmd - by adrianxd - 01.08.2012, 04:33
Re: Problema con este cmd - by Daniel-92 - 01.08.2012, 04:35
Respuesta: Problema con este cmd - by adrianxd - 01.08.2012, 04:37
Respuesta: Problema con este cmd - by CeKiT - 01.08.2012, 14:51
Respuesta: Problema con este cmd - by TheChaoz - 01.08.2012, 21:40
Respuesta: Problema con este cmd - by adrianxd - 01.08.2012, 22:04

Forum Jump:


Users browsing this thread: 3 Guest(s)