Mask System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Mask System (
/showthread.php?tid=418711)
Mask System -
Aarab - 25.02.2013
Hello,
I'm in need of a mask system, it will change the name to Mask 12345 [5 random numbers].
This is my hided hudbars replaced with the a textdraw.
Код:
ShowNameTags(false);
new name[MAX_PLAYER_NAME + 1];
GetPlayerName(playerid, name, sizeof(name));
for(new c = 0, l = strlen(name); c < l; ++c) {
if('_' == name[c]) {
name[c] = ' ';
break;
}
}
new Text3D:attachplayername = Create3DTextLabel(name, COLOR_WHITE, 30.0, 40.0, 50.0, 8.0, 0);
Attach3DTextLabelToPlayer(attachplayername, playerid, 0.0,0.0,0.2);
I want if someone bought the mask, it will change the 3Dtextlabel to the mask code.