25.10.2011, 20:26
Oh lol, thanks
Repped, (Imma noob with Y_INI still).
EDIT- How would I read from the file to use it on this command?
Thanks.

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 i = 0; i < MAX_PLAYERS; i++)
if(PlayerInfo[i][pLaptopon] == 1)
{
format(string,sizeof(string),"[LAPTOP] %s: %s",GetName(playerid),message);
SendClientMessage(i,COLOR_YELLOW,string);
}
return 1;
}
}