24.03.2010, 20:57
SOLVED! Delete please.. Reall Thanks
// Top
Masked[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
Masked[playerid] = 0;
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/mask", true))
{
Masked[playerid] = 1;
SendClientMessage(playerid,0xFFFFF," You are masked now");
Return 1;
}
if(!strcmp(cmdtext, "/unmask", true))
{
Masked[playerid] = 0;
SendClientMessage(playerid,0xFFFFF," You are unmasked now");
Return 1;
}
return 0;
}
public OnPlayerText(playerid, text[])
{
for(new i=0;i<=MAX_PLAYERS; i++)
{
if(Masked[playerid] == 1)
{
new string[256];
format(string,256,"Masked Man: %s",text[0]);
SendClientMessage(i,GetPlayerColor(playerid),string);
} else Return 1;
}
}
Originally Posted by Shakur_
Hmm, I know what he is wanting, and you've done most of that. But, I believe you forgot the part where it hides the players nametag when he's in /mask. I imagine this is for a RP server, so...
|