12.08.2013, 01:32
pawn Код:
if(strcmp(cmd, "/veiculocasa", true) == 0) {
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
new cstring[100];
for(new c = 0; c < MAX_CASAS; c++)
{
format(cstring, sizeof(cstring), "/Casas/casa%d.ini", c);
if(dini_Exists(cstring)){
if(IsPlayerInRangeOfPoint(playerid, 2.0, dini_Float(cstring, "PosX"), dini_Float(cstring, "PosY"), dini_Float(cstring, "PosZ"))){
if(dini_Int(cstring, "TDono") == 1 || pAdmin[playerid] >= 5){
if(!strcmp(dini_Get(cstring, "Dono"), pname) || pAdmin[playerid] >= 5){
new stringuis1[94];
strcat(stringuis1, "Sentinel\nVoodoo\nPremier\nInfernus\nNRG-500\nSultan\nTurismo\nSanchez\nSandking\nBullet\nElegy\nBuffalo\nInfernus\nPerenniel\nSentinel\nCheetah\nEsperanto\nBobcat\nBF Injection\nBanshee\nStallion\nRomero\nPCJ-600\nFreeway\nGlendale\nFCR-900\nFeltzer\nRemington\nSlamvan\nBlade\nYosemite\nSavanna\nHuntley\n");
strcat(stringis1, "Oceanic\nSabre\nZR-350\nRegina\nComet\nBMX\nCamper\n\nVirgo\nGreenwood\nHotring Racer 1\nHotring Racer 2\nHotring Racer 3\nJeep\nSuper GT\nElegant\nMountain Bike\nMajestic\n");
ShowPlayerDialog(playerid, DIALOG_CASAS_VEICULO, DIALOG_STYLE_LIST, "Veнculo Casa", stringuis1, "Selecionar", "Sair");
return true;
}else{if(c == MAX_CASAS-1){SendClientMessage(playerid, Vermelho, "Esta casa nгo й sua!");}}
}else{if(c == MAX_CASAS-1){SendClientMessage(playerid, Vermelho, "Esta casa nгo й sua!");}}
}else{if(c == MAX_CASAS-1){SendClientMessage(playerid, Vermelho, "Vocк nгo estб em nenhuma casa!");}}
}
}
return true;
}