22.03.2011, 16:12
pawn Код:
if(PlayerInfo[playerid][pMember] !=0 && GetPlayerTeam(playerid) != PlayerInfo[playerid][pMember])
{
SendClientMessage(playerid, COLOR_WHITE, "You do not belong to this gang!");
return 0;
}
What's wrong?
if(PlayerInfo[playerid][pMember] !=0 && GetPlayerTeam(playerid) != PlayerInfo[playerid][pMember])
{
SendClientMessage(playerid, COLOR_WHITE, "You do not belong to this gang!");
return 0;
}
public OnPlayerRequestSpawn(playerid)
{
new skin, name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
skin = GetPlayerSkin(playerid);
if(SkinInfo[skin][sOwned] == 1 && strcmp(SkinInfo[skin][sOwner],name, false))
{
SendClientMessage(playerid, COLOR_WHITE, "This skin is reserved!");
return 0;
}
if(PlayerInfo[playerid][pMember] !=0 && GetPlayerTeam(playerid) != PlayerInfo[playerid][pMember])
{
SendClientMessage(playerid, COLOR_WHITE, "You do not belong to this gang!");
return 0;
}
return 1;
}