22.01.2012, 14:49
pawn Код:
if(response)//se ele aceitar
{
new para1;
new str[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
new pName[256];
new convite1[260];
new convite[260];
GetPlayerName(playerid, pName, sizeof(pName));
format(str, 256, "%s Aceitou seu convite.", sendername);
SendClientMessage(InviteOffer[playerid], COLOR_LIGHTBLUE, str);
SendClientMessage(GetPVarInt(playerid, "Lider"), COLOR_LIGHTBLUE, convite1);//avisa ao lнder
format(convite,sizeof(convite),"[Info] O jogador %s Aceitou o convite.",pName);
SendTeamMessage(PlayerInfo[playerid][pMember],COLOR_YELLOW,convite);
PlayerInfo[playerid][pMember];
PlayerInfo[playerid][pRank] = 1;
SetPlayerHealth(playerid,999);
SendClientMessage(para1,COLOR_YELLOW,"|- Use 'proximo' para selecionar seu uniforme -|");
SendClientMessage(para1,COLOR_YELLOW,"|- Se vocк gostou do uniforme digite 'confirma' -|");
TogglePlayerControllable(para1, 0);
SelectChar[para1] = 255;
SelectCharID[para1] = PlayerInfo[para1][pMember];
SelectCharPlace[para1] = 1;
PlayerInfo[para1][pModel] = ChosenSkin[para1];
PlayerInfo[para1][pChar] = ChosenSkin[para1];
Invite[playerid] = 0;