[AJUDA] Concessionбria
#8

Poderiam colocar estilo isto:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
new string[256];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
for(new carro = 0; carro < MAX_CARROS; carro++)
{
new vid;
vid = GetPlayerVehicleID(playerid);
format(string, sizeof(string), "carro%d.ini", carro);
if(dini_Exists(string)){
if(vid == dini_Int(string, "Id")){
if(dini_Int(string, "TDono") == 1){
if(strcmp(dini_Get(string, "Dono"), pname, true) == 0){
SendClientMessage(playerid, Azul, "Brasil Realidade Cruel RPG - Este carro й seu, seja bem vindo !");
} else {
format(string, sizeof(string), "Brasil Realidade Cruel RPG - Este carro nгo й seu, й de: %s", dini_Get(string, "Dono"));
SendClientMessage(playerid, Azul, string);
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
new nome[MAX_PLAYER_NAME];
GetPlayerName(i, nome, sizeof(nome));
if(strcmp(dini_Get(string, "Dono"), nome, true) == 0 && GetPlayerVehicleID(playerid) == dini_Int(string, "Id")){
format(string, sizeof(string), "Brasil Realidade Cruel RPG - ALARME: %s(Id:%d) tentou roubar seu carro.", pname, playerid);
SendClientMessage(i, tcadm, string);
}
}
}
RemovePlayerFromVehicle(playerid);
}
Reply


Messages In This Thread
[AJUDA] Concessionбria - by GuiihCamargo - 18.03.2012, 01:36
Respuesta: [AJUDA] Concessionбria - by isli27 - 18.03.2012, 01:52
Re: Respuesta: [AJUDA] Concessionбria - by GuiihCamargo - 18.03.2012, 02:10
Respuesta: [AJUDA] Concessionбria - by isli27 - 18.03.2012, 02:32
Re: [AJUDA] Concessionбria - by GuiihCamargo - 18.03.2012, 03:33
Re: [AJUDA] Concessionбria - by GraziFerreira - 18.03.2012, 05:41
Re: [AJUDA] Concessionбria - by GuiihCamargo - 19.03.2012, 00:20
Re: [AJUDA] Concessionбria - by GuiihCamargo - 19.03.2012, 03:11

Forum Jump:


Users browsing this thread: 2 Guest(s)