Need help with a little command.
#1

Код:
new typed[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
	if(typed[playerid] = 1)
	{
	for(new i = 0;i < MAX_PLAYERS; i++)
 			{
 			ShowPlayerNameTagForPlayer(playerid, i, 1);
			}
	return 1;

	}
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/achucknorris", cmdtext, true, 10) == 0)
	{
    SendClientMessage(playerid, COLOR_GREEN, "You are now Chuck Norris - name tag disabled, skin changed, health 10000000, weapons given");
    SetPlayerSkin(playerid, 294);
    GivePlayerWeapon(playerid, 26, 100000);
    GivePlayerWeapon(playerid, 34, 100000);
    GivePlayerWeapon(playerid, 35, 100000);
    GivePlayerWeapon(playerid, 4, 1);
    SetPlayerHealth(playerid, 100000000.0);
    typed[playerid] = 1;
	}
	return 1;
}
Why does this not work? I want the playerґs name tag disabled as he enters the command..
Reply


Messages In This Thread
Need help with a little command. - by Striker_Moe - 28.08.2009, 16:10
Re: Need help with a little command. - by ded - 28.08.2009, 16:22
Re: Need help with a little command. - by Striker_Moe - 28.08.2009, 16:30
Re: Need help with a little command. - by ded - 28.08.2009, 16:42
Re: Need help with a little command. - by Striker_Moe - 28.08.2009, 16:53
Re: Need help with a little command. - by ded - 28.08.2009, 16:57
Re: Need help with a little command. - by Striker_Moe - 28.08.2009, 17:01
Re: Need help with a little command. - by ded - 28.08.2009, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)