[AJUDA]/Convidar bugado
#1

Nessessariamente nao sei se e o /convidar que ta bugado, ele esta assim o

ex: Eu sou lider dos Ballas
Eu convido o id 1
Ele aceita o convite /aceitar convite, ate ai beleza
So que quando ele morrer ele perde a skin e nasce onde os civis nasce

comando:

if(strcmp(cmd, "/convidar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USO: /convidar [playerid/Parte-do-Nick]");
return 1;
}
new para1;
new ftext[20];
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][pLeader] >= 1 && PlayerInfo[para1][pMember] == 0)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] >= 0)
{
if(PlayerInfo[playerid][pLeader] == 1) { ftext = "Polнcia Militar"; }
else if(PlayerInfo[playerid][pLeader] == 2) { ftext = "Polнcia Federal"; }
else if(PlayerInfo[playerid][pLeader] == 0) { ftext = "Civil"; }
else if(PlayerInfo[playerid][pLeader] == 3) { ftext = "Forзas Armadas"; }
else if(PlayerInfo[playerid][pLeader] == 4) { ftext = "Emergкncias."; }
else if(PlayerInfo[playerid][pLeader] == 5) { ftext = "Ballas Gang"; }
else if(PlayerInfo[playerid][pLeader] == 6) { ftext = "Grove Street"; }
else if(PlayerInfo[playerid][pLeader] == 7) { ftext = "Polнtico"; }
else if(PlayerInfo[playerid][pLeader] == { ftext = "Assassino"; }
else if(PlayerInfo[playerid][pLeader] == 9) { ftext = "Repуrter"; }
else if(PlayerInfo[playerid][pLeader] == 11) { ftext = "Instrutor"; }
else if(PlayerInfo[playerid][pLeader] == 12) { ftext = "Los Vagos"; }
else if(PlayerInfo[playerid][pLeader] == 13) { ftext = "Ice Clube"; }
else if(PlayerInfo[playerid][pLeader] == 14) { ftext = "Policia Rodoviбria"; }
else if(PlayerInfo[playerid][pLeader] == 15) { ftext = "Extreme Rally"; }
else if(PlayerInfo[playerid][pLeader] == 16) { ftext = "Triads"; }
else if(PlayerInfo[playerid][pLeader] == 17) { ftext = "Yakuza"; }
else if(PlayerInfo[playerid][pLeader] == 1 { ftext = "Terroristas"; }
else { return 1; }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
printf("Adm: %s convidou %s para entrar no grupo dos: '%s'", sendername, giveplayer, ftext);
format(string, sizeof(string), "* Vocк recebeu um convite para entrar na profissгo '%s' (digite /aceitar convite) para aceitar.", ftext, sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Vocк convidou %s para sua profissгo '%s'.", giveplayer,ftext);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
Invite[para1] = 1;
InviteOffer[para1] = playerid;
InviteJob[para1] = PlayerInfo[playerid][pLeader];
}
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo estб autorizado a ultilizar este comando !");
}
}
return 1;
}
Reply


Messages In This Thread
[AJUDA]/Convidar bugado - by JoseIsac - 25.07.2010, 05:20
Re: [AJUDA]/Convidar bugado - by Canabis - 25.07.2010, 07:04
Re: [AJUDA]/Convidar bugado - by sergio_xd - 25.07.2010, 14:19

Forum Jump:


Users browsing this thread: 1 Guest(s)