*** This topic title is not descriptive. -
Hello! When i invite anybode in my faction it appear 'you are invited in '67' from .... '.. i want to be 'you are invited in Grove from .... ' Please Help.
pawn Код:
if(strcmp(cmd, "/invite", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Usage: /invite [playerid]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pRank] == 6 && PlayerInfo[playerid][pMember] != TEAM_CIVILIAN)
{
if(PlayerInfo[giveplayerid][pMember] == TEAM_CIVILIAN)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
new form[128];
new faction = PlayerInfo[playerid][pMember];
FactionRequest[giveplayerid] = faction;
format(form,sizeof(form),"you'r invited to join in '%d', from '%s'",TeamInfo[playerid][TeamName],GetName(playerid));
SendClientMessage(giveplayerid,COLOR_LIGHTBLUE,form);
format(form,sizeof(form),"you invite %s to join. ",GetName(giveplayerid));
SendClientMessage(playerid,COLOR_LIGHTBLUE,form);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, " Invalid ID.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, " he is in another gang.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "u not leader!");
}
}
return 1;
}