Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

CMD player name...

$
0
0
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 Code:

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;



Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>