10.11.2017, 21:13
When I try to create a new object for my system and use a custom model the object appears a moment and disappears. With the objects of the game does not happen. This is the command.
Quote:
CMD: objc(playerid,params[]) { if(GetPVarInt(playerid, "Level") < 5) return SendClientMessage(playerid,red,"ERROR: no has desbloqueado este comando"); new model,bone,color,color2,Precios; if(sscanf(params, "ddddd", model,bone,color,color2,Precios)) return SendClientMessage(playerid, 0xFF0000FF, "Usa: /objc modelo bone color color2 precio"); PlayerInfo[playerid][EditandoSlot] = 30; ao[playerid][30][ao_sx] = 1; ao[playerid][30][ao_sy] = 1; ao[playerid][30][ao_sz] = 1; ao[playerid][30][ao_model] = model; ao[playerid][30][ao_bone] = bone; ao[playerid][30][Color] = color; ao[playerid][30][Color2] = color2; ao[playerid][30][precio] = Precios; SetPlayerAttachedObject(playerid,0,model,bone,ao[playerid][30][ao_x] ,ao[playerid][30][ao_y] ,ao[playerid][30][ao_z],ao[playerid][30][ao_rx] ,ao[playerid][30][ao_ry],ao[playerid][30][ao_rz] ,ao[playerid][30][ao_sx],ao[playerid][30][ao_sy],ao[playerid][30][ao_sz],GetObjColour(color),GetObjColour(color2)); EditAttachedObject(playerid, 0); return 1; } |