CMD player name...
#1

Can i make this cmd check if the player name is example Red_John and if it is let him use it.Only him!

PHP код:
COMMAND:glazba(playerid,params[])
{
    
    if (
APlayerData[playerid][LoggedIn] == true && APlayerData[playerid][PlayerLevel] > 4)
    {
        new 
Link[128];
        if(
sscanf(params"s[128]"Link)) return SendClientMessage(playerid0xFF0000FF"{FF0000}Komanda:{FF0000} {FFFFFF}/Glazba <Link> {FFFFFF}");
        for (new 
i=0MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i) && !IsPlayerNPC(i)){
                
PlayAudioStreamForPlayer(iLink);
            }
        }
        return 
1;
    }
    return 
0;

Reply


Messages In This Thread
CMD player name... - by xxxSpeedxxx - 08.06.2016, 15:10
Re: CMD player name... - by Stinged - 08.06.2016, 15:20
Re: CMD player name... - by Gammix - 08.06.2016, 15:21
Re: CMD player name... - by xxxSpeedxxx - 08.06.2016, 16:20
Re: CMD player name... - by Konstantinos - 08.06.2016, 16:43

Forum Jump:


Users browsing this thread: 1 Guest(s)