Skin problem....Eeasy help.
#1

I want to make a Movable gate that works just for some skins and that for 265,266,267,284,285,286.

Here is what i done for yet.....
Code:
public OnPlayerUpdate(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,2,-2946.31665039,465.48043823,6.68745375))
	{
	return 1;
	}
	return 1;
}
Also it works perfect but for all skins i want to make it that it works just for these skins
  1. 265
    266
    267
    284
    285
    286.
Thanks for all help....
Reply
#2

EDIT:
I do not recommend you to use it at OnPlayerUpdate(..) because OnPlayerUpdate(..) is called around 3/4 times per second. You can better make a seperate timer of 1 second (less lag)

pawn Code:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid,2,-2946.31665039,465.48043823,6.68745375))
    {
        switch(GetPlayerSkin(playerid))
        {
            case 265 .. 267, 284 .. 286:
            {
                // place here the script when the player has the skin (265 .. 267, 284 .. 286)
            }
        }
    }
    return 1;
}
Reply
#3

Works man thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)