06.11.2012, 16:08
Hello, again! Now my problem is:
When i invite my friend in my gang Grove, it says you're invited in Ballas?
When i invite my friend in my gang Grove, it says you're invited in Ballas?
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 '%s'",TeamInfo[playerid][TeamName]);
SendClientMessage(giveplayerid,COLOR_LIGHTBLUE,form);
format(form,sizeof(form),"you invite %d 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;
}