Adding A Line
#1

So I'm trying to add this line to this command
Код:
if(GetPlayerSkin(playerid) == 285)
but every time i do it the pawno gives me a bunch of errors how would i do it? Any help in how to add it and if you don't have this skin it doesn't let you use it and it sends a message?

Код:
CMD:mask(playerid, params[])
{
	new name[MAX_PLAYER_NAME];
	new string[42];
	if(PlayerInfo[playerid][pMask] == 0)
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
			ShowPlayerNameTagForPlayer(i, playerid, 0);
			}
		}
		PlayerInfo[playerid][pMask] = 1;
		GetPlayerName(playerid, name, sizeof(name));
		format(string, sizeof(string), "* %s has put a mask on.", name);
		ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	}
	else if(PlayerInfo[playerid][pMask] == 1)
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
				ShowPlayerNameTagForPlayer(i, playerid, 1);
			}
		}
		PlayerInfo[playerid][pMask] = 0;
		GetPlayerName(playerid, name, sizeof(name));
		format(string, sizeof(string), "* %s has put their mask away.", name);
		ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	}
	return 1;
}
Reply


Messages In This Thread
Adding A Line - by AchievementMaster360 - 10.06.2013, 22:05
Re: Adding A Line - by -CaRRoT - 10.06.2013, 22:07
Re: Adding A Line - by AchievementMaster360 - 10.06.2013, 22:13

Forum Jump:


Users browsing this thread: 1 Guest(s)