їComo se peude almacenar esto?
#8

pawn Код:
#include <a_samp>
static Posicion[3] = -1;

public OnPlayerEnterCheckpoint(playerid)
{
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    if(Posicion[0] == -1)
    {
        Posicion[0] = playerid;
        GetPlayerName(strval(Posicion[0]), sendername, sizeof(sendername));
        format(string,sizeof(string),"[Info:] %s llego en primer puesto",sendername);
        SendClientMessageToAll(-1,string);
        return 1;
    }
    else if(Posicion[1] == -1)
    {
        Posicion[1] = playerid;
        GetPlayerName(strval(Posicion[1]), sendername, sizeof(sendername));
        format(string,sizeof(string),"[Info:] %s llego en segundo puesto",sendername);
        SendClientMessageToAll(-1,string);
        return 1;
    }
    else if(Posicion[2] == -1)
    {
        Posicion[2] = playerid;
        GetPlayerName(strval(Posicion[2]), sendername, sizeof(sendername));
        format(string,sizeof(string),"[Info:] %s llego en tercer puesto",sendername);
        SendClientMessageToAll(-1,string);
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
їComo se peude almacenar esto? - by benjas09 - 11.11.2013, 00:07
Respuesta: їComo se peude almacenar esto? - by benjas09 - 12.11.2013, 02:54
Respuesta: їComo se peude almacenar esto? - by Tirael - 12.11.2013, 04:14
Respuesta: їComo se peude almacenar esto? - by benjas09 - 12.11.2013, 14:41
Respuesta: їComo se peude almacenar esto? - by benjas09 - 16.11.2013, 19:59
Respuesta: їComo se peude almacenar esto? - by JustBored - 16.11.2013, 20:52
Respuesta: їComo se peude almacenar esto? - by benjas09 - 17.11.2013, 15:03
Respuesta: їComo se peude almacenar esto? - by OTACON - 17.11.2013, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)