/rc Respawn de Carros -
Vinicius DarK - 21.09.2011
Bom Galera, Procurei o Comando /RC e nгo Achei,
o Comando й o Seguiinte,
/rc pra Respawnar Todosos Carros, mas pra ele n respawnar os carros Ocupados
vlww
Re: /rc Respawn de Carros -
Lohran - 21.09.2011
ajuda?pedido? duvida? oq?
Re: /rc Respawn de Carros -
Lуs - 21.09.2011
ZCMD ? STRCMP ? SSCANF?
Re: /rc Respawn de Carros -
Dolby - 21.09.2011
http://forum.sa-mp.com/showpost.php?...3&postcount=68
Re: /rc Respawn de Carros -
WLSF - 21.09.2011
pawn Код:
if(strcmp(cmdtext,"/rc", true) == 0)
{
for(new x = 0; x < MAX_VEHICLES ; x++)
{
SetVehicleToRespawn(x);
}
return 1;
}
Simples assim, basta fechar para admins
Re: /rc Respawn de Carros -
Macintosh - 21.09.2011
Certeza que procurou?
Pois eu acho que nгo. Procure dinovo -_-.
Re: /rc Respawn de Carros -
[O.z]Caroline - 21.09.2011
pawn Код:
stock ResetarCarros()
{
SendClientMessageToAll(-1, "algum administrador espawnou todos os carros.");
static bool:inVeh;
for(new i; i < MAX_VEHICLES; i++ )
{
inVeh = false;
for(new j; j < GetMaxPlayers(); j++ )
{
if(IsPlayerInVehicle( j, i ))
inVeh = true;
break;
}
if(!inVeh) SetVehicleToRespawn(i);
}
}
Creditos: desconhecido.
Re: /rc Respawn de Carros -
Macintosh - 21.09.2011
Quote:
Originally Posted by [O.z]Caroline
pawn Код:
stock ResetarCarros() { SendClientMessageToAll(-1, "algum administrador espawnou todos os carros."); static bool:inVeh; for(new i; i < MAX_VEHICLES; i++ ) { inVeh = false; for(new j; j < GetMaxPlayers(); j++ ) { if(IsPlayerInVehicle( j, i )) inVeh = true; break; } if(!inVeh) SetVehicleToRespawn(i); } }
Creditos: desconhecido.
|
pawn Код:
if(strcmp("/rc", cmdtext, true, 3) == 0) return ResetarCarros();
pawn Код:
stock ResetarCarros()
{
new
Nome[MAX_PLAYER_NAME],
sStr[27 + MAX_PLAYER_NAME]
;
GetPlayerName(playerid, Nome, sizeof(Nome));
format(sStr, sizeof(sStr), "%s respawnou todos os carros!", Nome);
SendClientMessageToAll(-1, sStr);
new bool:inVeh;
for(new i; i < MAX_VEHICLES; i++ )
{
inVeh = false;
for(new j; j < GetMaxPlayers(); j++ )
{
if(IsPlayerInVehicle(j, i))
inVeh = true;
break;
}
if(!inVeh) SetVehicleToRespawn(i);
}
return 1;
}
Re: /rc Respawn de Carros -
[O.z]Caroline - 21.09.2011
Quote:
Originally Posted by Shickcard
pawn Код:
if(strcmp("/rc", cmdtext, true, 3) == 0) return ResetarCarros();
pawn Код:
stock ResetarCarros() { new Nome[MAX_PLAYER_NAME], sStr[27 + MAX_PLAYER_NAME] ; GetPlayerName(playerid, Nome, sizeof(Nome)); format(sStr, sizeof(sStr), "%s respawnou todos os carros!", Nome); SendClientMessageToAll(-1, sStr); new bool:inVeh; for(new i; i < MAX_VEHICLES; i++ ) { inVeh = false; for(new j; j < GetMaxPlayers(); j++ ) { if(IsPlayerInVehicle(j, i)) inVeh = true; break; } if(!inVeh) SetVehicleToRespawn(i); } return 1; }
|
erro, undefined symbol playerd.
pawn Код:
if(!strcmp("/rc", cmdtext, true)) return ResetarCarros(playerid);
pawn Код:
stock ResetarCarros(playerid)
{
new
Nome[MAX_PLAYER_NAME],
sStr[27 + MAX_PLAYER_NAME]
;
GetPlayerName(playerid, Nome, sizeof(Nome));
format(sStr, sizeof(sStr), "%s respawnou todos os carros!", Nome);
SendClientMessageToAll(-1, sStr);
static bool:inVeh;
for(new i; i < MAX_VEHICLES; i++ )
{
inVeh = false;
for(new j; j < GetMaxPlayers(); j++ )
{
if(IsPlayerInVehicle(j, i))
inVeh = true;
break;
}
if(!inVeh) SetVehicleToRespawn(i);
}
return 1;
}
Re: /rc Respawn de Carros -
Vinicius DarK - 21.09.2011
Quote:
Originally Posted by Lohran
ajuda?pedido? duvida? oq?
|
Pedido
Quote:
Originally Posted by Los
ZCMD ? STRCMP ? SSCANF?
|
STRCMP
Quote:
Originally Posted by Willian_Luigi
pawn Код:
if(strcmp(cmdtext,"/rc", true) == 0) { for(new x = 0; x < MAX_VEHICLES ; x++) { SetVehicleToRespawn(x); } return 1; }
Simples assim, basta fechar para admins 
|
Eu quero Pra Nгo Respawnar os CarrosOcupado por Players
Quote:
Originally Posted by Shickcard
Certeza que procurou?
Pois eu acho que nгo. Procure dinovo -_-.
|
Sim, Ja Procurei e Nгo achei oq eu queria
Quote:
Originally Posted by [O.z]Caroline
pawn Код:
stock ResetarCarros() { SendClientMessageToAll(-1, "algum administrador espawnou todos os carros."); static bool:inVeh; for(new i; i < MAX_VEHICLES; i++ ) { inVeh = false; for(new j; j < GetMaxPlayers(); j++ ) { if(IsPlayerInVehicle( j, i )) inVeh = true; break; } if(!inVeh) SetVehicleToRespawn(i); } }
Creditos: desconhecido.
|
ERRO: "COMANDO DESCONHEЗIDO"
Creditos TheGarfild
Quote:
Originally Posted by Gustavo_Araujo
|
Vlw, Funfou Thnaks