04.03.2019, 18:37
if(PlayerInfo[playerid][pClanTagOn] == 0)
{
PlayerInfo[playerid][pClanTagOn] = 1;
SetTag(playerid, PlayerInfo[playerid][pClanTag]);
SendClientMessage(playerid, -1, "Clan tag:On");
UpdateVariable(playerid, pClanTagOnx);
}
else
{
PlayerInfo[playerid][pClanTagOn] = 0;
// here should be something for instantly removing the tag when the clan tag is off,i dont know how to do that.
SendClientMessage(playerid, -1, "Clan tag:Off");
UpdateVariable(playerid, pClanTagOnx);
}
if(PlayerInfo[playerid][pClanTagOn] == 1)
{
SetTag(playerid, PlayerInfo[playerid][pClanTag]);
}
this is under OnPlayerSpawn callback btw
this is how im checking if the player has the clan tag on,i have the "pClanTagOn" defined and all,but it still doesnt work,when im reconnecting on the server i don't have the tag,i have to put it again,and yes,pClanTagOn has value "1" in the database when im spawning and still does't show my tag only after i activate it again
It would mean a lot if you help me solve this,so please help both with the tag saving after relog and with the tag showing like this [OnlyTheFirstLetterFromTheTag].Name
{
PlayerInfo[playerid][pClanTagOn] = 1;
SetTag(playerid, PlayerInfo[playerid][pClanTag]);
SendClientMessage(playerid, -1, "Clan tag:On");
UpdateVariable(playerid, pClanTagOnx);
}
else
{
PlayerInfo[playerid][pClanTagOn] = 0;
// here should be something for instantly removing the tag when the clan tag is off,i dont know how to do that.
SendClientMessage(playerid, -1, "Clan tag:Off");
UpdateVariable(playerid, pClanTagOnx);
}
if(PlayerInfo[playerid][pClanTagOn] == 1)
{
SetTag(playerid, PlayerInfo[playerid][pClanTag]);
}
this is under OnPlayerSpawn callback btw
this is how im checking if the player has the clan tag on,i have the "pClanTagOn" defined and all,but it still doesnt work,when im reconnecting on the server i don't have the tag,i have to put it again,and yes,pClanTagOn has value "1" in the database when im spawning and still does't show my tag only after i activate it again
It would mean a lot if you help me solve this,so please help both with the tag saving after relog and with the tag showing like this [OnlyTheFirstLetterFromTheTag].Name