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

|
Originally Posted by Sky4D
Probably because you have it setting their skin, if they're moving while it sets their skin, they will become frozen.
|
SetPlayerSkin(para1, 101);
|
Originally Posted by ikarus❶❸❸❼
pawn Код:
|
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);
ToggleControllAble(para1, 1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command.");
}
}
return 1;
}
ToggleControllable(para1, 1);
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);