Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(GetPVarInt(playerid,"AHBauen")== 1)// Autohaus wird als Datei erstellt
- {
- new ahnr = AHAnzahl()+1,txt[128];
- SetPVarInt(playerid,"AHBauen",0);
- GetPlayerPos(playerid,AHausInfo[ahnr][AHPos][0],AHausInfo[ahnr][AHPos][1],AHausInfo[ahnr][AHPos][2]);
- format(datei,sizeof datei,ahvz,ahnr);
- if(!dini_Exists(datei))
- {
- dini_Create(datei);
- dini_Set(datei,"AutohausName",AHausInfo[ahnr][AHName]);
- dini_IntSet(datei,"AutohausKasse",0);
- dini_IntSet(datei,"AutohausSchloss",0);
- dini_FloatSet(datei,"AutohausPosX",AHausInfo[ahnr][AHPos][0]);
- dini_FloatSet(datei,"AutohausPosY",AHausInfo[ahnr][AHPos][1]);
- dini_FloatSet(datei,"AutohausPosZ",AHausInfo[ahnr][AHPos][2]);
- UpdateAH(ahnr,"all");
- format(txt,sizeof txt,"* %s klatscht einmal kräftig in die Hände und schon steht ein neus Autohaus mit dem Namen: %s .",SpielerName(playerid),AHausInfo[ahnr][AHName]);
- SendClientMessageToAll(rot,txt);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment