Potrebna mi je pomoc oko maske
Mod koji koristim: Ravens GM
Ovako zeleo bih ubaciti kada idem /maskon da ne pokazuje samo kao sto je stranger sayed nego i da sakrije ime igraca iznad glave a kad uradim /maskoff da vrati igracu ime iznad glave
komanda za /maskon
if(strcmp(cmd, "/maskon", true) == 0) // by CuervO_NegrO
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, "** You don't have a mask");
return 1;
}
if(PlayerInfo < 5)
{
SendClientMessage(playerid, COLOR_GRAD1, "** You are not able to use it.");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowNameTags( 0 );
}
}
PlayerInfo = 1;
SendClientMessage(playerid, COLOR_WHITE, "** You have put your mask on [/maskoff to put it away].");
format(string, sizeof(string), "* %s puts a mask on.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s -> /maskon",d,m,y,h,mi,s,sendername);
CommandLog(string);
}
return 1;
}
komanda za /maskoff
if(strcmp(cmd, "/maskoff", true) == 0) // by CuervO_NegrO
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " You don't have a mask");
return 1;
}
if(PlayerInfo < 5)
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not able to use it.");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowNameTags( 1 );
}
}
PlayerInfo = 0;
SendClientMessage(playerid, COLOR_WHITE, "You have put your mask off [/maskon to put it on].");
format(string, sizeof(string), "* %s puts a mask away.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s -> /maskoff",d,m,y,h,mi,s,sendername);
CommandLog(string);
}
return 1;
}
Unapred hvala svim ljudima koji zele pomoci

