16.10.2011, 19:23
how can i script a level show in the screen ?
i want that it will work on the score of the player
i want that it will work on the score of the player
new Text:himessage;
public OnGameModeInit()
{
himessage = TextDrawCreate(1.0, 5.6, "Level");
}
public OnPlayerConnect(playerid)
{
new newtext[41];
format(newtext, sizeof(newtext), "Level: %i",PlayerLevel[playerid]);
TextDrawSetString(himessage, newtext);
TextDrawShowForPlayer(playerid, himessage);
command(score, playerid, params[])
{
new string[128];
format(string, sizeof(string), "Score: %i",PlayerLevel[playerid]);
SendClientMessage(playerid, Red, string);
return 1;
}
CMD:score(playerid, params[])
{
new string[128];
format(string, sizeof(string), "Score: %i",PlayerLevel[playerid]); // Correct var?
SendClientMessage(playerid, Red, string);
return 1;
}
new Text:himessage;
public OnGameModeInit()
{
himessage = TextDrawCreate(1.0, 5.6, "Level");
}
public OnPlayerConnect(playerid)
{
new newtext[41];
format(newtext, sizeof(newtext), "Level: %i",PlayerLevel[playerid]);
TextDrawSetString(himessage, newtext);
TextDrawShowForPlayer(playerid, himessage);