#6

Quote:
Originally Posted by adrianxd
Посмотреть сообщение
lol?.
We xD.

Te doy un ejemplo:


pawn Код:
new EntroARace[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
EntroARace[playerid] = 0;
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
for(new i; i < GetMaxPlayers(); i++)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    PlayerPlaySound(playerid, 1139, x, y, z);
    switch(Stats[playerid])
    {

         case 1:
         {
              EntroARace[playerid] = 1;
              new tmp[256];
              static place;
              place++;
              DisablePlayerRaceCheckpoint(playerid);
              PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
              SetPlayerRaceCheckpoint(playerid, 0,3016.3357,-1632.8782,67.4452,3067.0481,-1652.2799,80.6263,10);
              Stats[playerid] = 2;
              format (tmp, sizeof (tmp) , "   %d" , place) ;
              TextDrawSetString(Textdraw1,tmp);
              return 1;
         }
         case 2:
         {
              EntroARace[playerid] = 2;
              //Cуdigos...
          }
Y asн sucesivamente.

Eso es lo que querias? .-.
Reply


Messages In This Thread
Duda - by adrianxd - 31.08.2013, 16:29
Respuesta: Duda - by Swedky - 31.08.2013, 16:34
Respuesta: Duda - by adrianxd - 31.08.2013, 16:35
Respuesta: Duda - by Swedky - 31.08.2013, 16:40
Respuesta: Duda - by adrianxd - 31.08.2013, 16:43
Respuesta: Duda - by Swedky - 31.08.2013, 16:45
Respuesta: Duda - by adrianxd - 31.08.2013, 16:46
Respuesta: Duda - by Swedky - 31.08.2013, 16:56
Respuesta: Duda - by Parka - 31.08.2013, 16:58
Re: Duda - by Daniel-92 - 31.08.2013, 22:16

Forum Jump:


Users browsing this thread: 1 Guest(s)