Help with Screenname.
#3

Oh lol, thanks Repped, (Imma noob with Y_INI still).

EDIT- How would I read from the file to use it on this command?

PHP код:
CMD:laptopmsg(playerid,params[]){
    new 
string[128],message;
    if(
PlayerInfo[playerid][pLaptop] == 0) return SendClientMessage(playerid,COLOR_GRAY,"You do not have a laptop!");
    else if(
sscanf(params,"s",message)) return SendClientMessage(playerid,COLOR_GRAY,"Syntax: /msg [message]");
    else if(
PlayerInfo[playerid][pLaptopon] == 0) return SendClientMessage(playerid,COLOR_GRAY,"Your laptop is not on.");
    else
    {
        for(new 
0MAX_PLAYERSi++)
        if(
PlayerInfo[i][pLaptopon] == 1)
        {
            
format(string,sizeof(string),"[LAPTOP] %s: %s",GetName(playerid),message);
            
SendClientMessage(i,COLOR_YELLOW,string);
        }
        return 
1;
    }
 } 
Thanks.
Reply


Messages In This Thread
Help with Screenname. - by Azzeto - 25.10.2011, 20:12
Re: Help with Screenname. - by AeroBlast - 25.10.2011, 20:19
Re: Help with Screenname. - by Azzeto - 25.10.2011, 20:26

Forum Jump:


Users browsing this thread: 1 Guest(s)