Help Me
#1

Hello..
i have a problem
when i spawn object in player,
object is missing
can someone help me?

sorry bad english


Код:
	if (strcmp(cmd, "/helmet", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(IsPlayerInAnyVehicle(playerid))
			{
			    if(IsModelABike(GetPlayerVehicleID(playerid)))
			    {
				    if(UsingBelt[playerid] == 0)
				    {
            			SetPlayerAttachedObject( playerid, 0, 18645, 2, 0.065851, 0.023372, 0.001142, 86.442092, 81.883964, 359.508026, 1.250617, 1.000000, 1.000000 ); // MotorcycleHelmet1 - ini yang asli dan benar
					    SendClientMessage(playerid, TEAM_CYAN_COLOR, "* Helmet: on");
			            UsingBelt[playerid] = 1;
					}
					else
					{
                		RemovePlayerAttachedObject(playerid, 0);
						SendClientMessage(playerid, TEAM_CYAN_COLOR, "* Helmet: off");
			            UsingBelt[playerid] = 0;
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_GREY,"* erorr: just for bike !");
					return 1;
				}
			}
		}
		return 1;
	}
^^
Whats wrong?
Reply
#2

pawn Код:
if (strcmp(cmd, "/helmet", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInAnyVehicle(playerid))
            {
                if(IsModelABike(GetPlayerVehicleID(playerid)))
                {
                    if(UsingBelt[playerid] == 0)
                    {
                        SetPlayerAttachedObject(playerid, 1, 18645, 2, 0.07, 0, 0, 88, 75, 0);
                        SendClientMessage(playerid, TEAM_CYAN_COLOR, "* Helmet: on");
                        UsingBelt[playerid] = 1;
                    }
                    else
                    {
                        RemovePlayerAttachedObject(playerid, 0);
                        SendClientMessage(playerid, TEAM_CYAN_COLOR, "* Helmet: off");
                        UsingBelt[playerid] = 0;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY,"* erorr: just for bike !");
                    return 1;
                }
            }
        }
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)