23.05.2012, 00:48
(
Последний раз редактировалось L.D.K; 23.05.2012 в 01:24.
)
tipo galera criei umas familias no servidor mais tipo quando convido alguem ele acc ele fika como dono da familia tanbem eu queria que ele ficasse como menbro como faзo ?
pawn Код:
if(strcmp(cmd, "/convidarf", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /convidarf [playerid/Parte-do-Nick]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][pLFamilia] == 1)
{
if(IsPlayerConnected(para1))
{
if(PlayerInfo[para1][pFamilia] != 0)
{
SendClientMessage(playerid, COLOR_GREY, "Este player jб participa de uma Familia.");
return 1;
}
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s te convidou para entrar para a familia Smith (digite /aceitar convitef ) para aceitar.", PlayerName(playerid));// e esse aki <-------------------------------------
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Vocк convidou %s para sua Familia.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
InviteOfferf[para1] = playerid;
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo й dono da familia Smith para usar este comando !");
}
return true;
}