Saving String
#6

Is that what you need ? :

PHP код:
dcmd_name(playerid,params[])
{
    new 
ID;
    new 
newnick[MAX_PLAYER_NAME];
    if(
sscanf(params"us"IDnewnick))
    {
        
SendClientMessage(playerid,COLOR_ERROR,"/name [Pseudo/ID] [Name].");
        return 
1;
    }
    
SetPlayerName(ID,newnick);
    
GameTextForPlayer(ID,"~r~Name's changed",3000,5);
     return 
1;
}
dcmd_admins(playerid,params[])
{
    
#pragma unused params
    
new string[138];
    
SendClientMessage(playerid,COLOR_DEADCONNECT,"[ ADMINS ONLINE ]");
    
SendClientMessage(playerid,COLOR_WHITE,"-------------------------------------------------------------------");
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        if(
IsPlayerAdmin(i))
            {
            
format(string,sizeof(string),"Admin %s(%d) : Admin Level (%d)",PlayerName(i),i,AdminLevel(i)));
            
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
        }
    
SendClientMessage(playerid,COLOR_WHITE,"-------------------------------------------------------------------");
    return 
1;
}
stock AdminLevel(targetid)
{
    new 
adlvl[10];
    if(
PlayerInfo[targetid][pAdmin] == 0) { adlvl "0"; }
    if(
PlayerInfo[targetid][pAdmin] == 1) { adlvl "1"; }
    if(
PlayerInfo[targetid][pAdmin] == 2) { adlvl "2"; }
    if(
PlayerInfo[targetid][pAdmin] == 3) { adlvl "3"; }
    if(
PlayerInfo[targetid][pAdmin] == 4) { adlvl "4"; }
    if(
PlayerInfo[targetid][pAdmin] == 5) { adlvl "5"; }
    if(
PlayerInfo[targetid][pAdmin] == 6) { adlvl "6"; }
    return 
adlvl;

KillerDVX,
Reply


Messages In This Thread
Saving String - by 025Tadija - 24.06.2015, 14:47
Re : Saving String - by Dutheil - 24.06.2015, 14:54
Re : Saving String - by KillerDVX - 24.06.2015, 14:58
Re: Saving String - by Darkwood17 - 24.06.2015, 15:02
Re: Saving String - by 025Tadija - 24.06.2015, 15:13
Re : Saving String - by KillerDVX - 24.06.2015, 15:14
Re: Saving String - by 025Tadija - 24.06.2015, 15:19
Re: Saving String - by Konstantinos - 24.06.2015, 15:26
Re : Saving String - by KillerDVX - 24.06.2015, 15:32
Re: Saving String - by 025Tadija - 24.06.2015, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)