23.05.2010, 14:08
Hello,
This is a problem I just dont understand, how can this command Freeze a player?
It also happends to the /invite command, but not so often, take a look at the /uninvite, if you cant find any problems there, I will show you the /invite command.
Thanks
This is a problem I just dont understand, how can this command Freeze a player?
Код:
if(strcmp(cmd, "/uninvite", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You are not logged in yet.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, " USAGE: /uninvite [playerid]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if(PlayerInfo[playerid][pLeader] >= 1)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLeader] = 0;
PlayerInfo[para1][pMember] = 0;
PlayerInfo[para1][pRank] = 0;
PlayerInfo[para1][pChar] = 101;
SetPlayerSkin(para1, 101);
gTeam[para1] = 10;
PlayerInfo[para1][pTeam] = 10;
format(string, sizeof(string), "You have been kicked from the faction by leader %s.", sendername);
SendClientMessage(para1, COLOR_LIGHTYELLOW, string);
format(string, sizeof(string), "You have kicked %s from the faction.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTYELLOW, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command.");
}
}
return 1;
}
Thanks


