31.03.2016, 15:28
Hello,
i need help with my /name off & /name on.
It compiles, but nothing happends.
Anything wrong here?
hname is a diffrent script that makes the name Stranger
i need help with my /name off & /name on.
It compiles, but nothing happends.
pawn Код:
{
if(PlayerInfo[playerid][power] || PlayerInfo[playerid][premium] || PlayerInfo[playerid][playerteam]==HITMAN || PlayerInfo[playerid][playerteam]==FBI || PlayerInfo[playerid][playerlvl]>= 15)
{
new tmp[4];
if(sscanf(params, "s", tmp)) return SCP(playerid, "[on/off]");
if(strcmp(tmp,"on",true)==0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid, i, true);
PlayerTemp[playerid][hname]=0;
}
return 1;
}
else if(strcmp(tmp,"off",true)==0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid, i, false);
PlayerTemp[playerid][hname]=1;
}
return 1;
}
}
}
hname is a diffrent script that makes the name Stranger