[Ajuda]Textdrawn
#3

colocar uma textdrawn emcima do carro com nome jogador ao compra o veiculo

Quote:
Originally Posted by SynVengeance
Посмотреть сообщение
....
Quote:
Originally Posted by SynVengeance
Посмотреть сообщение
if(strcmp(cmdtext, "/comprarveiculo", true) == 0)
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
for(new carro = 0; carro < MAX_CARROS; carro++) {
format(string, sizeof(string), "/Carros/carro%d.ini", carro);
if(strcmp(dini_Get(string, "Dono"), pname, true) == 0) {
SendClientMessage(playerid, Vermelho, "| ERRO | Vocк jб tem um veiculo e nгo pode comprar outro.");
return 1;
}
if(IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) == 0 && VehicleID == dini_Int(string, "Id")) {
if(GetPlayerGrana(playerid) >= dini_Int(string, "Preco")) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
dini_IntSet(string, "TDono", 1);
dini_Set(string, "Dono", aname);
SendClientMessage(playerid, -1, "| INFO | Veiculo comprado com sucesso!");
SendClientMessage(playerid, -1, "| INFO | Para ver as funзхes de seu veiculo, Use: '/meuveiculo'.");
GivePlayerGrana(playerid, -dini_Int(string, "Preco"));
TogglePlayerControllable(playerid, 1);
return 1;
}
else {
SendClientMessage(playerid, Vermelho, "| ERRO | Vocк nгo tem dinheiro suficiente!");
return 1;
}
}
}
}
Reply


Messages In This Thread
[Ajuda]Textdrawn - by SynVengeance - 28.04.2012, 03:29
Re: [Ajuda]Textdrawn - by SynVengeance - 28.04.2012, 03:32
Re: [Ajuda]Textdrawn - by SynVengeance - 28.04.2012, 03:44
Re: [Ajuda]Textdrawn - by SynVengeance - 28.04.2012, 03:46
Re: [Ajuda]Textdrawn - by ViniBorn - 28.04.2012, 03:56

Forum Jump:


Users browsing this thread: 2 Guest(s)