29.01.2014, 23:27
(
Последний раз редактировалось recagonlei; 30.01.2014 в 02:11.
)
Saudaзхes todos do forum samp, estou com um problema em meu servidor e nгo consigo arrumar. O comando para destrancar o veiculo sу estб funcionando se o mesmo estiver dentro dele, no contrбrio ele nгo destranca aparece uma mensagem informando que aquele nгo й o carro premium dele. Queria saber se alguйm sabe como arrumar, pois procurei e nгo achei nada semelhante na internet parecido com o code que estб no meu gm.
Esse sгo as linhas do comando:
Uma outra dъvida й sobre tunning, achei um save de tunning na internet muito bom, sу que o problema que quando vocк carrega o tunning o carro й automaticamente teleportado atй vocк e eu queria saber se alguйm consegue tirar isso. Queria carregar apenas o tunning e que o carro permaneзa no lugar em vez de fazer toda essa parafernalha.
Pastebin do tunning:
http://pastebin.com/B9JXBgvn
Esse sгo as linhas do comando:
pawn Код:
if(strcmp(tmp, "trancar", true) == 0)
{
if(PlayerInfo[playerid][pCarKey] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem um Carro Premium n°1.");
return true;
}
if(PlayerInfo[playerid][pCarKey] != vehid)
{
SendClientMessage(playerid, COLOR_GREY, "Esse nгo й seu Carro Premium.");
return true;
}
new keycar;
if(vehid == PlayerInfo[playerid][pCarKey]) { keycar = PlayerInfo[playerid][pVeiculo]; }
if(IsPlayerConnected(playerid))
{
if(CarInfo[keycar][cLock] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) SetVehicleParamsForPlayer(CarInfo[keycar][ownedvehicle],i,0,0);
}
format(string, sizeof(string), "~w~Veiculo Premium 1~n~~g~Aberto");
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, string, 10000, 3);
CarInfo[keycar][cLock] = 0;
return true;
}
else
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) SetVehicleParamsForPlayer(CarInfo[keycar][ownedvehicle],i,0,1);
}
format(string, sizeof(string), "~w~Veiculo Premium 1~n~~r~Trancado");
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, string, 10000, 3);
CarInfo[keycar][cLock] = 1;
return true;
}
}
return true;
}
Pastebin do tunning:
http://pastebin.com/B9JXBgvn
Desde jб agradeзo a compreensгo de todos.
Tenham uma boa noite.
Atenciosament: Recagonlei~
Tenham uma boa noite.
Atenciosament: Recagonlei~