31.08.2013, 16:45
We xD.
Te doy un ejemplo:
Y asн sucesivamente.
Eso es lo que querias? .-.
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...
}
Eso es lo que querias? .-.