07.05.2015, 17:12
i started work on Level up system but i cant sript a Hell
i want just someone help me ..
If possible i want when player spawn he is lvl 1
and a LVL up system to lvl 3
Each Kill +5 Xpe
From lvl 1 to lvl 2 need's 100XPe
From lvl 2 to lvl 3 needs 300Xpe
+ Rep for all who help me
Yeah im a bit mad cuz i dont know where to start
i made textdraws but cant Figure it out
pawn Код:
Codes
#include <a_samp>
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
public OnFilterScriptInit()
{
print("Textdraw file generated by");
print(" Zamaroht's textdraw editor was loaded.");
// Create the textdraws:
Textdraw0 = TextDrawCreate(500.000000, 103.000000, "_");
TextDrawBackgroundColor(Textdraw0, -16776961);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.600000, 2.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 16711935);
TextDrawTextSize(Textdraw0, 608.000000, 10.000000);
TextDrawSetSelectable(Textdraw0, 0);
Textdraw1 = TextDrawCreate(503.000000, 103.000000, "_");
TextDrawBackgroundColor(Textdraw1, -16776961);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.600000, 2.000000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, -65281);
TextDrawTextSize(Textdraw1, 605.000000, 10.000000);
TextDrawSetSelectable(Textdraw1, 0);
Textdraw2 = TextDrawCreate(502.000000, 104.000000, "O"); //Player Level
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.400000);
TextDrawColor(Textdraw2, 65535);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetSelectable(Textdraw2, 0);
Textdraw3 = TextDrawCreate(524.000000, 107.000000, "XPE"); //XPE of a player
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.380000, 0.899999);
TextDrawColor(Textdraw3, 65535);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetSelectable(Textdraw3, 0);
Textdraw4 = TextDrawCreate(549.000000, 106.000000, "/");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.380000, 0.899999);
TextDrawColor(Textdraw4, 65535);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetSelectable(Textdraw4, 0);
Textdraw5 = TextDrawCreate(557.000000, 107.000000, "NXPE"); //Level up Nxpe like 10/100=(NXPE)
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.380000, 0.899999);
TextDrawColor(Textdraw5, 65535);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 0);
TextDrawSetSelectable(Textdraw5, 0);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);
}
}
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
TextDrawHideForAll(Textdraw1);
TextDrawDestroy(Textdraw1);
TextDrawHideForAll(Textdraw2);
TextDrawDestroy(Textdraw2);
TextDrawHideForAll(Textdraw3);
TextDrawDestroy(Textdraw3);
TextDrawHideForAll(Textdraw4);
TextDrawDestroy(Textdraw4);
TextDrawHideForAll(Textdraw5);
TextDrawDestroy(Textdraw5);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
return 1;
}
If possible i want when player spawn he is lvl 1
and a LVL up system to lvl 3
Each Kill +5 Xpe
From lvl 1 to lvl 2 need's 100XPe
From lvl 2 to lvl 3 needs 300Xpe
+ Rep for all who help me
Yeah im a bit mad cuz i dont know where to start
i made textdraws but cant Figure it out