[Pedido]4 coisinhas . -
Lip_Name - 19.04.2011
oi pessoal preciso de 3 coisinhas ,
1- Um comando de reformar o carro
2- Um Comando de Rcon de /ls que vai pra los santos
3- Eeeeeeee , como faz um carro virar carro admin ? tipo eu criei um carro pra fica em um lugar e como faso pra ele fica de admin ?
4- Como adiciona CARROS , MOTOS , HELI , e etc... pelo MTA?
OBG!
Re: [Pedido]4 coisinhas . -
Carl_Thuse - 19.04.2011
pawn Код:
// Reparando! USE SEARCH E LEIA A WIKI
if(strcmp(cmd, "/reparar", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
RepairVehicle(vehicleid);
}
// INDO PRA LOS SANTOS
if(strcmp(cmd, "/irls", true) == 0)
{
if(!IsPlayerAdmin(playerid)) { SendClientMessage(playerid,COLOR,"Vocк precisa ser Administrador RCON!"); return 1; }
SetPlayerPos(X,Y,Z); // muda aqui para as cordenadas X,Y,Z
// os carros dps eu faзo '-' fiquei com fome xD
@EDIT Vocк nгo sabe adicionar carros pelo MTA? *-*
A Primeira coisa a fazer й baixa-lo ¬¬
Re: [Pedido]4 coisinhas . -
Shadoww5 - 19.04.2011
1 -
pawn Код:
if(strcmp(cmd, "/fixveh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, RED, "[ERRO] Vocк nгo estб autorizado a usar este comando.");
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, COLOR_GREY, " Veнculo Consertado !");
}
}
return 1;
}
2 -
pawn Код:
if(strcmp(cmd, "/ls", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new nome[24];
GetPlayerName(playerid, nome, sizeof nome);
if(IsPlayerAdmin(playerid))
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
}
SendClientMessage(playerid, COLOR_GRAD1, " Vocк foi teleportado !");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else
{
SendClientMessage(playerid, RED, "[ERRO] Vocк nгo estб autorizado a usar este comando.");
}
}
return 1;
}
3 - Explica direito esse negocio, porque nгo entendi bem :/
4 - Vai no MTA e salva o arquivo com os objetos com o nome que vocк desejar entгo vai na pasta "C:\Arquivos de Programas\MTA San Andreas\server\mods\deathmatch\resources" e lб vocк verб varias pastas
e uma delas terб o nome do arquivo que vocк salvou no MTA. Entгo abre essa pasta e clica no arquivo ".map" e copia todo este arquivo. Depois, acesse o site:
www.convertffs.com e coloque o codigo la. Veja que abaixo do espaзo que vocк tem para colocar o codigo tem INPUT e OUTPUT. No INPUT deixe como tб, porque й auto-ajustavel, jб no OUTPUT clique no primeiro CHANGE e selecione "YSI Create Dynamic Object" e no segundo CHANGE selecione "SA-MP AddStaticVehicle".
xD
Re: [Pedido]4 coisinhas . -
JonathanFeitosa - 19.04.2011
Use Search MANO !
Use /save.
Baixe o Meu Pacote Iniciante Que Vocк Aprenderб e Criarб Seu GM.
Re: [Pedido]4 coisinhas . -
JonathanFeitosa - 19.04.2011
Quote:
Originally Posted by Shadoww5
2 -
pawn Код:
if(strcmp(cmd, "/ls", true) == 0) { if(IsPlayerConnected(playerid)) { new nome[24]; GetPlayerName(playerid, nome, sizeof nome); if(IsPlayerAdmin(playerid)) { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid, 1529.6,-1691.2,13.3); } SendClientMessage(playerid, COLOR_GRAD1, " Vocк foi teleportado !"); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; } else { SendClientMessage(playerid, RED, "[ERRO] Vocк nгo estб autorizado a usar este comando."); } } return 1; }
|
pawn Код:
if(strcmp(cmd, "/ls", true) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0606FF, "[ERRO] Vocк nгo estб autorizado a usar este comando.");
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
return SetPlayerInterior(playerid,0);
}
ME DESCULPEM O DOBLE POST















Re: [Pedido]4 coisinhas . -
Lip_Name - 19.04.2011
Quote:
@EDIT Vocк nгo sabe adicionar carros pelo MTA? *-*
A Primeira coisa a fazer й baixa-lo ¬¬
|
Ja baixei sei editar mas nao sei como colocar carro .
Re: [Pedido]4 coisinhas . -
Carl_Thuse - 19.04.2011
http://www.convertffs.com/
Converta seu carro e..............
CreateVehicle.
Re: [Pedido]4 coisinhas . -
Shadoww5 - 19.04.2011
Nгo entendi o seu post Jonathan Feitosa '-'
Re: [Pedido]4 coisinhas . -
JonathanFeitosa - 19.04.2011
Pra que Gasta 99999999999999999 se da pra fazer com 5 ou ate com 2 ?
Re: [Pedido]4 coisinhas . -
Diogo_Bras - 20.04.2011
Lip_Name, estб aqui o meu comando (de acordo com o que vocк pediu):
pawn Код:
if(!strcmp(cmdtext, "/ls", true) || !strcmp(cmdtext, "/LosSantos", true))
{
new Veiculo, sStr[67];
Veiculo = GetPlayerVehicleID(playerid);
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFF000AA, "Sу administradores logados na RCON podem usar este comando!");
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(Veiculo, /*Cordenada:X*/, /*Cordenada:Y*/, /*Cordenada:Z*/);
format(sStr, sizeof(sStr), "%s foi para Los Santos (: (/LosSantos | /ls)", Jogador);
SendClientMessageToAll(0xFFF000AA, sStr);
}
else
{
SetPlayerPos(playerid, /*Cordenada:X*/, /*Cordenada:Y*/, /*Cordenada:Z*/);
format(sStr, sizeof(sStr), "%s foi para Los Santos (: (/LosSantos | /ls)", Jogador);
SendClientMessageToAll(0xFFF000AA, sStr);
}
return true;
}
E no final do gamemode coloque:
pawn Код:
stock Jogador(playerid)
{
new J[MAX_PLAYER_NAME];
GetPlayerName(playerid, J, sizeof(J));
return J;
}
Se der algum erro ou nгo funcionar, diga (: