An include that has a bunch of skin information.
crayder / skin-tags Goto Github PK
View Code? Open in Web Editor NEWAn include that has a bunch of skin information.
An include that has a bunch of skin information.
Use group values as default appeal values, but set per skin where necessary.
It seems that the function is not working correctly:
0 male
1 caucasian male
2 caucasian male
3 caucasian male
4 male
5 male
6 male
7 male
8 male
9 female
10 female
11 female
12 female
13 female
14 male
15 male
16 male
17 male
18 male
19 male
20 male
21 male
22 male
23 caucasian male
24 male
25 male
26 caucasian male
27 caucasian male
28 male
29 caucasian male
...
Pawn Fiddle: https://fiddle.sa-mp.dev/PaganisticAntimoralisticWoodcock
#define SKIN_AGE_YOUNG (0)
#define SKIN_AGE_MID (1)
#define SKIN_AGE_OLD (2)
Both boolean.
Use a simple script to do these. Concept code:
#include a_samp
#include strlib
new bool:skinHasHat[312], bool:skinHasBeard[312], currIndex;
main() {
AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
if(newkeys & KEY_SPRINT) {
currIndex++;
if(currIndex == 312)
currIndex = 0;
SetPlayerSkin(playerid, currIndex);
}
else if(newkeys & KEY_YES || newkeys & KEY_NO) {
skinHasHat[currIndex] = !!(newkeys & KEY_YES);
SendClientMessage(playerid, (newkeys & KEY_YES) ? 0x00FF00FF : 0xFF0000FF, "Hat");
}
else if(newkeys & KEY_CTRL_BACK || newkeys & KEY_WALK) {
skinHasBeard[currIndex] = !!(newkeys & KEY_CTRL_BACK);
SendClientMessage(playerid, (newkeys & KEY_CTRL_BACK) ? 0x00FF00FF : 0xFF0000FF, "Beard");
}
else if(newkeys & KEY_SECONDARY_ATTACK) {
fremove("export.txt");
new File:expFile = fopen("export.txt");
for(new i; i < 312; i++) {
fwrite(expFile, sprintf("%i|%i\r\n", skinHasHat[i], skinHasBeard[i]));
}
fclose(expFile);
SendClientMessage(playerid, -1, "Exported");
}
return 1;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.