Cual es el problema (???)
#6

Quote:
Originally Posted by JuanStone
Посмотреть сообщение
PHP код:

#include <a_samp>
#define CHECKCP_SIZE 12.5
new bool:ParticipoMaraton[MAX_PLAYERS];
new 
ProgresoMaraton[MAX_PLAYERS];
static const 
Float:MaratonCP[10][3] = 

    {-
690.4501, -834.8427101.8755}, 
    {-
645.7204, -765.917470.9295}, 
    {-
607.4532, -717.467955.8301}, 
    {-
554.5042, -716.192327.5240}, 
    {-
320.0933, -712.619553.3668}, 
    {-
296.5722, -708.7374, -0.3947}, 
    {-
252.0401, -682.5684, -0.3947}, 
    {-
115.9776, -886.7798, -0.3947}, 
    {
4.6160, -912.5621, -0.3947}, 
    {
99.5679, -911.53340.1937}
};
public 
OnPlayerEnterRaceCheckpoint(playerid)
{
    
// Comprobamos sн participa en el maraton.
    
if (ParticipoMaraton[playerid])
    {
        
// Sн participa sumamos progreso(+1).
        
ProgresoMaraton[playerid] = ProgresoMaraton[playerid] +1;
        
// Esto es para ahorrar espacio.
        
new slot ProgresoMaraton[playerid];
        
// Sн el checkpoint no es el ante-ъltimo; aсadimos un puesto de control normal(1).
        
if (ProgresoMaraton[playerid] <= 7)
            
SetPlayerRaceCheckpoint(playerid0MaratonCP[(slot)][0], MaratonCP[(slot)][1], MaratonCP[(slot)][2], MaratonCP[(slot)+1][0], MaratonCP[(slot)+1][1], MaratonCP[(slot)+1][2], CHECKCP_SIZE);
        
// Contrarнo a eso sн el checkpoint al que ingreso fue el ante-ъltimo; aсadimos un puesto de control tipo meta(0).
        
else if (ProgresoMaraton[playerid] == 8)
            
SetPlayerRaceCheckpoint(playerid1MaratonCP[(slot)][0], MaratonCP[(slot)][1], MaratonCP[(slot)][2], 00.0000.0000.00CHECKCP_SIZE);
        
// Sн el puesto de control al que ingreso fue el ъltimo, sucederб esto.
        
else if (ProgresoMaraton[playerid] == sizeof(MaratonCP)-1)
        {
            
// Termino el maraton.
        
}
    }
    return 
true;

es exactamente lo que hice, solo que yo lo hice mas corto !
Reply


Messages In This Thread
Cual es el problema (???) - by ForTrezZ - 27.07.2015, 20:38
Respuesta: Cual es el problema (???) - by Goncho28 - 27.07.2015, 21:00
Respuesta: Cual es el problema (???) - by ForTrezZ - 27.07.2015, 21:37
Respuesta: Cual es el problema (???) - by Goncho28 - 27.07.2015, 21:44
Respuesta: Cual es el problema (???) - by JuanStone - 27.07.2015, 23:47
Respuesta: Cual es el problema (???) - by ForTrezZ - 28.07.2015, 00:34
Respuesta: Cual es el problema (???) - by Toolkit - 28.07.2015, 01:46
Respuesta: Cual es el problema (???) - by ForTrezZ - 28.07.2015, 18:42
Respuesta: Cual es el problema (???) - by teamz - 29.07.2015, 00:17

Forum Jump:


Users browsing this thread: 1 Guest(s)