DrPawn

autohaus erstellen beispiel

Feb 24th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. if(GetPVarInt(playerid,"AHBauen")== 1)// Autohaus wird als Datei erstellt
  2. {
  3. new ahnr = AHAnzahl()+1,txt[128];
  4. SetPVarInt(playerid,"AHBauen",0);
  5. GetPlayerPos(playerid,AHausInfo[ahnr][AHPos][0],AHausInfo[ahnr][AHPos][1],AHausInfo[ahnr][AHPos][2]);
  6. format(datei,sizeof datei,ahvz,ahnr);
  7. if(!dini_Exists(datei))
  8. {
  9. dini_Create(datei);
  10. dini_Set(datei,"AutohausName",AHausInfo[ahnr][AHName]);
  11. dini_IntSet(datei,"AutohausKasse",0);
  12. dini_IntSet(datei,"AutohausSchloss",0);
  13. dini_FloatSet(datei,"AutohausPosX",AHausInfo[ahnr][AHPos][0]);
  14. dini_FloatSet(datei,"AutohausPosY",AHausInfo[ahnr][AHPos][1]);
  15. dini_FloatSet(datei,"AutohausPosZ",AHausInfo[ahnr][AHPos][2]);
  16. UpdateAH(ahnr,"all");
  17. 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]);
  18. SendClientMessageToAll(rot,txt);
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment