[Dъvida] Respawn Veнculos
#1

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
Reply
#2

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:
Reply
#3

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];
Reply
#4

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

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

Obrigado Turminha .
Reply
#5

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

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"
Reply
#7

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'
Reply
#8

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


#Laught
Reply
#9

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..
Reply
#10

pawn Код:
new Nome[MAX_PLAYERS_NAME];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)