Posts: 188
Threads: 61
Joined: Nov 2012
Do anyone know how I can create a Text instead of "Level 1" ex.? Like when im kicking / slapping, then the admin ranks name will be showed?
Like if we say, level 1 is Trial Admin, and he is doing /kick
Example has been kicked by Trial Admin Example2 ?
Posts: 188
Threads: 61
Joined: Nov 2012
Posts: 151
Threads: 24
Joined: Apr 2013
You have a Roleplay server
Moderator
Admin
general admin
senior admin
Server owner
Just giving you names. Becuase someone already told you how to make names. do i still get a rep? :3
Posts: 188
Threads: 61
Joined: Nov 2012
But now I've a problem, it doesnt giving me the admin lvl name when im kicking?
PHP код:
CMD:kick(playerid, params[])
{
new id, reason[128];
if(PInfo[playerid][Level] == 1) return SendClientMessage(playerid,COLOR_RED, " You are not admin level 1.");
else if(sscanf(params, "us", id, reason))SendClientMessage(playerid, COLOR_WHITE, "Usage: /kick [id/name][reason]");
else {
new Name[MAX_PLAYER_NAME], KickMessage[128];
new Name2[MAX_PLAYER_NAME];
new admlvl;
GetPlayerName(playerid, Name, sizeof(Name));
GetPlayerName(id, Name2, sizeof(Name2));
format(KickMessage, sizeof(KickMessage), "%s %s has kicked %s [reason: %s]",admlvl, Name, Name2, reason);
SendClientMessageToAll(COLOR_RED, KickMessage);
Kick(id);
}
return 1;
}
Posts: 151
Threads: 24
Joined: Apr 2013
Quote:
Originally Posted by FunnyBear
Don't beg
|
how do i beg without saying please?
it was a question.
Posts: 188
Threads: 61
Joined: Nov 2012
Getting some errors now ;S
C:\Users\Skole\Desktop\Samp server\filterscripts\System.pwn(179) : error 047: array sizes do not match, or destination array is too small
C:\Users\Skole\Desktop\Samp server\filterscripts\System.pwn(180) : error 047: array sizes do not match, or destination array is too small
C:\Users\Skole\Desktop\Samp server\filterscripts\System.pwn(183) : error 047: array sizes do not match, or destination array is too small
C:\Users\Skole\Desktop\Samp server\filterscripts\System.pwn(186) : error 047: array sizes do not match, or destination array is too small
PHP код:
switch (PInfo[playerid][Level])
{
case 1: szString = "Trial admin";
case 2: szString = "Low Admin";
case 3: szString = "Junior Admin";
case 4: szString = "Senior Admin";
case 5: szString = "Admin";
case 6: szString = "High Admin";
case 7: szString = "Expert Admin";
case 8: szString = "Head Admin";
case 9: szString = "Lead Admin";
case 10: szString = "Server Owner";
following lines which is errors on:
183
179
186
180
please help me :S
Posts: 188
Threads: 61
Joined: Nov 2012
fixed, just needed to set 12 to 64