їComo se peude almacenar esto?
#3

їAlgo asн ?

pawn Код:
new Posicion[3] = -1;
public OnPlayerEnterCheckpoint(playerid)
{
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(Posicion[0] == -1)
    {
        Posicion[0] =   playerid;
        format(string,sizeof(string),"[Info:] %s llego en primer puesto",sendername);
        SendClientMessageToAll(-1,string);
        return 1;
    }
    else if(Posicion[1] == -1)
    {
        Posicion[1] =   playerid;
        format(string,sizeof(string),"[Info:] %s llego en segundo puesto",sendername);
        SendClientMessageToAll(-1,string);
        return 1;
    }
    else if(Posicion[2] == -1)
    {
        Posicion[2] =   playerid;
        format(string,sizeof(string),"[Info:] %s llego en tercer puesto",sendername);
        SendClientMessageToAll(-1,string);
        return 1;
    }
   
    //Aqui le metes que siga el patrуn
    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)