Unfreezeme Help
#1

SO i need help. i want to remove the [ID] in /unfreezeme

Код:
CMD:unfreezeme(playerid, params[])
{
	new targetid;

	if(sscanf(params, "u", targetid))
	{
	    return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /unfreeze [ID]");
	}

	if(PlayerInfo[targetid][pTazedTime])
	{
		ClearAnimations(targetid, 1);
		PlayerInfo[targetid][pTazedTime] = 0;
	}

	TogglePlayerControllable(targetid, 1);

	return 1;
}
Reply
#2

Quote:
Originally Posted by Ponga
Посмотреть сообщение
SO i need help. i want to remove the [ID] in /unfreezeme

Код:
CMD:unfreezeme(playerid, params[])
{
	new targetid;

	if(sscanf(params, "u", targetid))
	{
	    return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /unfreeze [ID]");
	}

	if(PlayerInfo[targetid][pTazedTime])
	{
		ClearAnimations(targetid, 1);
		PlayerInfo[targetid][pTazedTime] = 0;
	}

	TogglePlayerControllable(targetid, 1);

	return 1;
}

PHP код:
CMD:unfreezeme(playeridparams[])
{
    if(
PlayerInfo[playerid][pTazedTime])
    {
        
ClearAnimations(playerid1);
        
PlayerInfo[playerid][pTazedTime] = 0;
    }
    
TogglePlayerControllable(playerid1);
    return 
1;

Reply
#3

Just wanted to note out that the code u both posted does TogglePlayerControllable(playerid,1); whether you were tazed or not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)