Honzajer3 0 Odesláno: 19. Říjen, 2014 Share Odesláno: 19. Říjen, 2014 Čus lidi mám Vehicle & Property System od QWERA A nevím jak se tam tvořej property nevíte někdo lidi ? Tady je něco Tady sem tam něco našel: tock CreateProperty(typ,Float:x,Float:y,Float:z,cost){ PC++; if(PC < MAX_PROPERTY){ PropertyPos[PC][0] = x; PropertyPos[PC][1] = y; PropertyPos[PC][2] = z; if(typ < 0 || typ >= MAX_PROPERTY_TYPE) return printf("(%d/%d) Nehnutelnosť má zlý typ !",PC,MAX_PROPERTY_TYPE); PropertyType[PC] = typ; PropertyCost[PC] = cost; new str[256]; format(str,100,"Property/%d.txt",PC); if(!fexist(str)){ new File:file = fopen(str,io_write); format(str,256,"%s %d %d %d %d %s",PROPERTY_DEFAULT_OWNER,-1,PROPERTY_DEFAULT_PRICE,0,typ,DefaultName[typ]); /* O C P Z N */ // O - Owner P - Price Z - Zisk (profit) N - Name (property) fwrite(file,str); fclose(file); PropertyPrice[PC] = PROPERTY_DEFAULT_PRICE; format(PropertyName[PC],MAX_PROPERTY_NAME,"%s",DefaultName[typ]); format(PropertyOwner[PC],MAX_PLAYER_NAME,"%s",PROPERTY_DEFAULT_OWNER); }else{ new File:file = fopen(str,io_read); fread(file,str); DelChar(str); sscanf(str,"siiiiz",PropertyOwner[PC],PropertyConnect[PC],PropertyPrice[PC],PropertyProfit[PC],PropertyType[PC],PropertyName[PC]); //printf("|%s|%d|%d|%d|%d|%s|",PropertyOwner[PC],PropertyConnect[PC],PropertyPrice[PC],PropertyProfit[PC],PropertyType[PC],PropertyName[PC]); } PropertyPC[PC] = CreateStreamCp(x, y, z, 2.5); // format(str,256,"Nehnuteľnosť č.{FFFFFF}%d\n{FFFFFF}%s\n{FF0000}Owner: {FFFFFF}%s",PC,PropertyName[PC],PropertyOwner[PC]); PropertyLabel[PC] = Create3DTextLabel(str,PROPERTY_LABEL_COLOR,x,y,z+1, 80, 0, 1); CreateMapIcon(8, -1, x, y, z); //CreateDynamicMapIcon(x, y, z, 8, -1, -1, -1, -1, 100.0); }else printf("(%d/%d) Na servery je moc nehnutelností ! ",PC,MAX_PROPERTY); return true; } Link to comment Share on other sites More sharing options...
0 DoKinek 0 Odesláno: 21. Říjen, 2014 Share Odesláno: 21. Říjen, 2014 Žeby CreateProperty(typ,X,Y,Z,cena); ? :-D Link to comment Share on other sites More sharing options...
Dotaz
Honzajer3 0
Čus lidi mám Vehicle & Property System od QWERA
A nevím jak se tam tvořej property nevíte někdo lidi ?
Tady je něco
Tady sem tam něco našel:
Link to comment
Share on other sites
1 odpověd na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now