cmd:mask Not working
#3

Try

Код:
CMD:mask(playerid, params[])
{
	new name[MAX_PLAYER_NAME];
	new string[42];
    if(class[playerid][Sniper] == 1) return SendClientMessage(playerid, COLOR_GREY, "You're not Sniper Man.");

	if(PlayerInfo[playerid][pSniper] == 0)
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
			ShowPlayerNameTagForPlayer(i, playerid, 0);
			}
		}
		PlayerInfo[playerid][Sniper] = 1;
		GetPlayerName(playerid, name, sizeof(name));
	}
	else if(PlayerInfo[playerid][Sniper] == 1)
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
				ShowPlayerNameTagForPlayer(i, playerid, 1);
				format(string, 128, "Stranger [ID: %i]", var);
			}
		}
		PlayerInfo[playerid][Sniper] = 0;
		GetPlayerName(playerid, name, sizeof(name));
	}
			else if(GetPVarInt(playerid, "EventToken"))
		{
			SendClientMessageEx(playerid, COLOR_GRAD1, "You can't use this while in an event.");
		}

     else if(class[playerid][Sniper] == 0)
     {
        SendClientMessage(playerid, COLOR_RED,"You Need to be in Sniper Class to Use this command");
     }
	return 1;
}
For fix the attached object : https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject Or I think I did it already
Reply


Messages In This Thread
cmd:mask Not working - by Avi57 - 13.06.2013, 08:23
Re: cmd:mask Not working - by MyNinja - 13.06.2013, 08:29
Re: cmd:mask Not working - by ProjectFutureRolePlay - 13.06.2013, 08:31
Re: cmd:mask Not working - by MyNinja - 13.06.2013, 08:35
Re: cmd:mask Not working - by ProjectFutureRolePlay - 13.06.2013, 09:16

Forum Jump:


Users browsing this thread: 1 Guest(s)