[HELP] /uninvite Freezes players...
#1

Hello,

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;
	}
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

Reply


Messages In This Thread
[HELP] /uninvite Freezes players... - by FreddeN - 23.05.2010, 14:08
Re: [HELP] /uninvite Freezes players... - by (.Aztec); - 23.05.2010, 14:11
Re: [HELP] /uninvite Freezes players... - by FreddeN - 23.05.2010, 14:24
Re: [HELP] /uninvite Freezes players... - by [MWR]Blood - 23.05.2010, 14:25
Re: [HELP] /uninvite Freezes players... - by FreddeN - 23.05.2010, 14:29
Re: [HELP] /uninvite Freezes players... - by Mechscape - 23.05.2010, 14:36
Re: [HELP] /uninvite Freezes players... - by Niixie - 23.05.2010, 16:16
Re: [HELP] /uninvite Freezes players... - by Jakku - 23.05.2010, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)