29.10.2011, 19:30
pawn Код:
if(strcmp(cmdtext, "/irevento", true) == 0)
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(!evento[i]) return SendClientMessage(playerid, -1, "Evento nгo estб aberto");
if(!damas[0][i])
{
SetPlayerPos(playerid, 2139.7417,-4206.8960,9.7203);
damas[0][i] = true;
return 1;
}
else if(!damas[1][i])
{
SetPlayerPos(playerid, 2143.1997,-4295.2114,9.6977);
damas[1][i] = true;
return 1;
}
else if(!damas[2][i])
{
SetPlayerPos(playerid, 2177.1826,-4295.4995,9.6861);
damas[2][i] = true;
return 1;
}
else if(!damas[3][i])
{
SetPlayerPos(playerid, 2216.0708,-4294.6152,9.6988);
damas[3][i] = true;
return 1;
}
else if(!damas[4][i])
{
SetPlayerPos(playerid, 2250.5933,-4292.4912,9.6984);
damas[4][i] = true;
return 1;
}
else if(!damas[5][i])
{
SetPlayerPos(playerid, 2288.4783,-4291.3901,9.6453);
damas[5][i] = true;
return 1;
}
else if(!damas[6][i])
{
SetPlayerPos(playerid, 2325.3833,-4289.4883,9.3727);
damas[6][i] = true;
return 1;
}
else if(!damas[7][i])
{
SetPlayerPos(playerid, 2321.9485,-4203.3970,9.6152);
damas[7][i] = true;
return 1;
}
else if(!damas[8][i])
{
SetPlayerPos(playerid, 2291.1157,-4203.1714,9.6847);
damas[8][i] = true;
}
else if(!damas[9][i])
{
SetPlayerPos(playerid, 2252.5278,-4205.3608,9.7127);
damas[9][i] = true;
return 1;
}
else if(!damas[10][i])
{
SetPlayerPos(playerid, 2216.4785,-4203.9727,9.7653);
damas[10][i] = true;
return 1;
}
else if(!damas[11][i])
{
SetPlayerPos(playerid, 2178.0195,-4206.8096,9.8171);
damas[11][i] = true;
return 1;
}
else if(damas[11][i]) return SendClientMessage(playerid, -1, "Evento Lotado");
}
return 1;
}