Tessék. Ezt Beilleszted az OnPlayertext alá:Ilyen tudással ne kezdj bele egy 10.000 nél több soros módba
new String[256];
if (APlayerData[playerid][PlayerLevel] >= 5)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(String,sizeof(String),\"{00FF00}[Tulajdonos] {FF0000}%s: {0000FF}%s\",pName,text);
}
else
if (APlayerData[playerid][PlayerLevel] >= 4)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(String,sizeof(String),\"{00FF00}[Fõadmin] {FF0000}%s: {0000FF}%s\",pName,text);
}
else
if (APlayerData[playerid][PlayerLevel] >= 3)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(String,sizeof(String),\"{00FF00} {FF0000}%s: {0000FF}%s\",pName,text);
}
else
if (APlayerData[playerid][PlayerLevel] >= 2)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(String,sizeof(String),\"{00FF00}[Adminsegéd] {FF0000}%s: {0000FF}%s\",pName,text);
}
else
if (APlayerData[playerid][PlayerLevel] >= 1)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(String,sizeof(String),\"{00FF00}[Moderátor] {FF0000}%s: {0000FF}%s\",pName,text);
}
else
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(String,sizeof(String),\"{00FF00}[Játékos]{FFFFFF}%s: {FFFFFF}%s\",pName,text);
}
return SendClientMessageToAll(-1, String), 0;
Ilyen tudással ne kezdj bele egy 10.000 nél több soros módba
Tessék. Ezt Beilleszted az OnPlayertext alá:
new String[256];
if (APlayerData[playerid][PlayerLevel] >= 5)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(String,sizeof(String),\"{00FF00}[Tulajdonos] {FF0000}%s: {0000FF}%s\",pName,text);
}
else
if (APlayerData[playerid][PlayerLevel] >= 4)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(String,sizeof(String),\"{00FF00}[Fõadmin] {FF0000}%s: {0000FF}%s\",pName,text);
}
else
if (APlayerData[playerid][PlayerLevel] >= 3)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(String,sizeof(String),\"{00FF00} {FF0000}%s: {0000FF}%s\",pName,text);
}
else
if (APlayerData[playerid][PlayerLevel] >= 2)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(String,sizeof(String),\"{00FF00}[Adminsegéd] {FF0000}%s: {0000FF}%s\",pName,text);
}
else
if (APlayerData[playerid][PlayerLevel] >= 1)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(String,sizeof(String),\"{00FF00}[Moderátor] {FF0000}%s: {0000FF}%s\",pName,text);
}
else
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(String,sizeof(String),\"{00FF00}[Játékos]{FFFFFF}%s: {FFFFFF}%s\",pName,text);
}
return SendClientMessageToAll(-1, String), 0;
[/quote]
tudhatnád, hogy minél fiatalabb valaki, annál vakmerõbb, és annál inkább hiszi, hogy tud :D