public OnPlayerText(playerid, text[]){ if(Kérdezd le az admint) { new nev[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, nev, 24); format(string, sizeof(string), \"[Admin]%s %s\", nev, text); SendClientMessageToAll(-1,string); return 0; } return 1;}
if(5) { new nev[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, nev, 24); format(string, sizeof(string), \"[Admin]%s %s\", nev, text); SendClientMessageToAll(-1,string); return 0; }
if(PlayerInfo[playerid][Level] >= 5) {
public OnPlayerText(playerid, text[]) { if(PlayerInfo[playerid][Level] >= 5) { new nev[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, nev, 24); format(string, sizeof(string), \"[Admin]%s %s\", nev, text); SendClientMessageToAll(-1,string); return 0; } return 1; }
public OnPlayerText(playerid, text[]){if(PlayerInfo[playerid][Level] >= 5){ new nev[MAX_PLAYER_NAME], string[128],adminnev[20]; GetPlayerName(playerid, nev, 24); switch(PlayerInfo[playerid][Level]) { case 1: adminnev = \"VIP\"; // Ha 1-es az adminszintje akkor \'VIP\'-et fog kiírni case 2: adminnev = \"2 Admin\"; //... és így tovább } format(string, sizeof(string), \"[%s]%s %s\",adminnev, nev, text); SendClientMessageToAll(-1,string); return 0; }return 1;}
public OnPlayerText(playerid, text[]){ if(PlayerInfo[playerid][Level] >= 5) { new nev[MAX_PLAYER_NAME], string[128],adminnev[20]; GetPlayerName(playerid, nev, 24); switch(PlayerInfo[playerid][Level]) { case 1: adminnev = \"VIP\"; // Ha 1-es az adminszintje akkor \'VIP\'-et fog kiírni case 2: adminnev = \"2 Admin\"; //... és így tovább } format(string, sizeof(string), \"[%s]%s %s\",adminnev, nev, text); SendClientMessageToAll(-1,string); return 0; } return 1;}
public OnPlayerText(playerid, text[]){ if(PlayerInfo[playerid][Level] >= 5) { new nev[MAX_PLAYER_NAME], string[128],adminnev[20]; GetPlayerName(playerid, nev, 24); switch(PlayerInfo[playerid][Level]) { case 1: adminnev = \"VIP\"; // Ha 1-es az adminszintje akkor \'VIP\'-et fog kiírni case 2: adminnev = \"2 Admin\"; //... és így tovább } format(string, sizeof(string), \"[%s]%s %s\",adminnev, nev, text); SendClientMessageToAll(-1,string); return 0; } return 1;} Ha ezt így beteszem akkor csak szint 5 ösnek fogja kiírni!
public OnPlayerText(playerid, text[]){ new nev[MAX_PLAYER_NAME], string[128],adminnev[20]; GetPlayerName(playerid, nev, 24); switch(PlayerInfo[playerid][Level]) { case 0: adminnev = \"Játékos\"; // Ha nem admin,akkor \'Játékos\'-t fog kiírni,de ezeket átírhatod amire akarod. case 1: adminnev = \"VIP\"; // Ha 1-es az adminszintje akkor \'VIP\'-et fog kiírni case 2: adminnev = \"2 Admin\"; //... és így tovább case 3: adminnev = \"3 Admin\"; case 4: adminnev = \"FőAdmin\"; case 5: adminnev = \"Tulaj\"; } format(string, sizeof(string), \"[%s]%s %s\",adminnev, nev, text); SendClientMessageToAll(-1,string); return 0;}