SA-MP Forums Archive
[Dъvida] Respawn Veнculos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Dъvida] Respawn Veнculos (/showthread.php?tid=327282)



[Dъvida] Respawn Veнculos - shadauer - 20.03.2012

Minha Dъvida:

** Meu Servidor / FS Admin, Nгo Possui Comando De Respawnar Os Veнculos.

** Tem Como Por Uma Dentro Da GM? Podem Me Ajudar A Elaborar 1?
pawn Код:
/Respawnveiculos
** Ou Que Os Carros Voltem Sуsinhos Para O Lugar De 10 EM 10 Mнnutos?


Gracias



Re: [Dъvida] Respawn Veнculos - @Riichard - 20.03.2012

pawn Код:
if(strcmp(cmdtext, "/respawnveiculos", true) == 0)
    {
new bool:vehicle[MAX_VEHICLES];
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
format(string, sizeof string, "» %s Resetou os Veiculos", Nome);
SendClientMessageToAll(-1, string);
for(new j = 1; GetVehicleModel(j); ++j)
{
vehicle[j] = false;
for(new i, p = GetMaxPlayers(); i < p; ++i)
{
if(!IsPlayerInAnyVehicle(i) || !IsPlayerConnected(i)) continue;
if(IsPlayerInVehicle(i, j))
                {
vehicle[j] = true;
break;
}
}
if(!vehicle[j]) SetVehicleToRespawn(j);
}
return 1;
}
So Modificar e Colocar como adm .. To sem o cod D:


Re: [Dъvida] Respawn Veнculos - DouglasRodrigues - 20.03.2012

Quote:
Originally Posted by OwnPlaay
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext, "/respawnveiculos", true) == 0)
    {
new bool:vehicle[MAX_VEHICLES];
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
format(string, sizeof string, "» %s Resetou os Veiculos", Nome);
SendClientMessageToAll(-1, string);
for(new j = 1; GetVehicleModel(j); ++j)
{
vehicle[j] = false;
for(new i, p = GetMaxPlayers(); i < p; ++i)
{
if(!IsPlayerInAnyVehicle(i) || !IsPlayerConnected(i)) continue;
if(IsPlayerInVehicle(i, j))
                {
vehicle[j] = true;
break;
}
}
if(!vehicle[j]) SetVehicleToRespawn(j);
}
return 1;
}
So Modificar e Colocar como adm .. To sem o cod D:
@Edit
Pelo menos aqui fui testar deu erro com o Nome. '-'
Se der ae tambem bote nas news:
pawn Код:
new Nome[MAX_PLAYER_NAME];



Re: [Dъvida] Respawn Veнculos - shadauer - 20.03.2012

Nem Quero pra adm , Se For Pra Player й melhor ainda

@EDIT
Vou Testar A Noite, Estou No Serviзo Agora

Obrigado Turminha .



Re: [Dъvida] Respawn Veнculos - @Riichard - 20.03.2012

Se der algum erro,poste aquiii
e pq no code,nao tenho os " new "
estгo tudo pra cima..


Re: [Dъvida] Respawn Veнculos - shadauer - 20.03.2012

N Ta Por Tempo ne ? 10 em 10 min '-'

@dit

pawn Код:
C:\Users\BruceLee\Desktop\server\gamemodes\drift.pwn(7118) : error 017: undefined symbol "Nome"
C:\Users\BruceLee\Desktop\server\gamemodes\drift.pwn(7119) : error 017: undefined symbol "Nome"



Re: [Dъvida] Respawn Veнculos - @Riichard - 20.03.2012

Da sim..
So que to sem cod..
so tenho de excluir D:

OBS - Meu Excluir ta bugado,,to arrumando.. se eu arrumar posto prati (y'


Re: [Dъvida] Respawn Veнculos - shadauer - 20.03.2012

Tranquнlo, Vo Tentar Resolver Nгo Der Aguardo Por tu sz


#Laught


Re: [Dъvida] Respawn Veнculos - Sampizito - 20.03.2012

Shadeur, por que nгo bota 1 tempo "igual" no parametro CreateVehicle ID, X,y.z,rotaзгo,cor1,cor2,Tempo de respawn


Acho melhor [; Ai eles respawn sozinho..


Re: [Dъvida] Respawn Veнculos - @Riichard - 20.03.2012

pawn Код:
new Nome[MAX_PLAYERS_NAME];