29.09.2016, 20:50
Alguem sabe criar aquela efeito ou sistema sei la que troca de imagem do conecta exemplo o player logo e viu uma imagem dai quando ele reloga ver outra
new Imagens = random(14); switch(Imagens) { case 0: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc9"); case 1: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc8"); case 2: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc7"); case 3: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc6"); case 4: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc5"); case 5: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc4"); case 6: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc3"); case 7: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc2"); case 8: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc1"); case 9: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc14"); case 10: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc13"); case 11: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc12"); case 12: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc11"); case 13: TextDrawSetString(TextdrawImagem,"LOADSUK:loadsc10"); } //EM TextdrawImagem Troque pelo nome da variбvel da textdraw que vocк criou.
new Text:NomedaVar;
Alguem sabe criar aquela efeito ou sistema sei la que troca de imagem do conecta exemplo o player logo e viu uma imagem dai quando ele reloga ver outra
|
#include <a_samp> new Text:DrawConnect; public OnPlayerRequestClass(playerid, classid) { TextDrawHideForPlayer(playerid, DrawConnect); return 1; } public OnPlayerConnect(playerid) { new Imagens = random(14); switch(Imagens) { case 0: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc9"); case 1: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc8"); case 2: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc7"); case 3: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc6"); case 4: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc5"); case 5: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc4"); case 6: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc3"); case 7: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc2"); case 8: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc1"); case 9: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc14"); case 10: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc13"); case 11: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc12"); case 12: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc11"); case 13: DrawConnect = TextDrawCreate(0.000000, 0.000000, "LOADSUK:loadsc10"); } TextDrawFont(DrawConnect, 4); TextDrawTextSize(DrawConnect, 641.500, 451.000); TextDrawColor(DrawConnect, -1); TextDrawShowForPlayer(playerid, DrawConnect); return 1; }