17.08.2012, 09:22
Hello..
i have a problem
when i spawn object in player,
object is missing
can someone help me?
sorry bad english
^^
Whats wrong?
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?